On 11/2/2012 09:32, Sergei Gorelkin wrote: > In other words, XML is wrong technology to work with binary data, unless it is > encoded into textual form (Base64 or alike). encoding into textual form one increases the size of the stream by at least 1/3rd... a 3M file will be a 4M stream when encoded...