Base64 encoding increases the value of byte [] by about 33% - each 6-bit bit is mapped to one ASCII character, which takes one byte, so every 3 bytes (24 bits) in the input generates 4 bytes (24/6) in output). You are viewing ~ 2 MB for the file itself. If you add any other parameters to your operation, as well as SOAP overhead (envelope and headers), you should find a reasonable value for this parameter.
source share