It's specifically for file upload from Java apps. You don't need to worry about encodings... per se. I mean, it's just going to send the bytes in the file. Of course, it should be read on the other side in the same charset encoding it was written with, but XML has a way to define that in the file, of course.