One more hint to file upload. Even I had encoding set to UTF-8, headers were
still in ISO-8859-1. So when I needed to send file which contained special
characters in the name I got only hieroglyphs :-)
To convert file name to UTF-8 I used this:
Attachment att = exchange.getIn().getBody(Attachment.class);
String filename = new
String(att.getDataHandler().getName().getBytes("ISO-8859-1"), "UTF-8");
-Roman
-----
-Br, Roman
--
View this message in context:
http://cxf.547215.n5.nabble.com/Multipart-file-upload-tp5730547p5731080.html
Sent from the cxf-user mailing list archive at Nabble.com.