This solution works ok with one little glitch. When I was working on my local
environment then there was no problem, but when I deployed it to my server I
noticed on little thing. The file I am uploading, has to be located on your
server, but you want to upload it from your(client's) drive. So you must
have two uploading parts. One which will move your file to your Karaf's
server, and the other one is that Camel will move it from its server to
wherever you want to upload the file.

It goes this way:

Your local drive e.g. /home/janulrom/Documents/test.txt -> Server where you
run Karaf e.g. /var/tmp/test.txt -> Server where you want to upload the file

it bugs me a lot, because I don't now how to pass file to route for example
as byte[] or so. The worst part is that you must have two upload parts which
can reduce memory when there is many requests. If someone has a hint how to
do that, it will be much appreciated.

-Br, Roman



--
View this message in context: 
http://camel.465427.n5.nabble.com/Send-file-via-POST-request-tp5728674p5729111.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to