Apache Camel multipart HTTP post(文件上传) [英] Apache Camel multipart HTTP post (file upload)
本文介绍了Apache Camel multipart HTTP post(文件上传)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用 Apache Camel HTTP 组件进行分段文件上传?
How can I do multipart file uploads using the Apache Camel HTTP component ?
推荐答案
我不知道是否可以使用 HTTP 组件发送多部分表单.
I don't know is it possible to send multipart forms using the HTTP component.
如果您需要解决方法,您可以创建使用 Apache Http 客户端(及其MultipartPostMethod
)的 POJO Spring Bean.然后你可以将你的消息路由到那个 bean:
If you need the workaround, you can create POJO Spring Bean that uses the Apache Http Client (and its MultipartPostMethod
). Then you can route your message to that bean:
from("activemq:uploadQueue").to("bean:myApacheHttpClientBean?method=sendMultiPart")
这篇关于Apache Camel multipart HTTP post(文件上传)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文