MATLAB returns the base64 encoded byte stream for any data that is sent over the SOAP message. Unlike C# or Java clients which interface to the webservice, MATLAB does not convert this data back to a binary byte array.
Base64 encoding takes every 3 bytes (24 bits) and encodes them into 4 bytes with 6 bits of data per byte. Each of these 4 bytes comes from a 64-byte dictionary of regular characters (e.g. A-Z,a-z, 0-9, / etc).
To get the raw byte data, manually decode this Base64 encoded data.
A small example of how to do this within MATLAB is shown below:
import java.lang.String;
encoder = org.apache.commons.codec.binary.Base64;
bs64data = '7tyg546bf0a2316dhvber345' ;
JavaString = String(bs64data);
ByteFromString = JavaString.getBytes();
DecodedBytes = encoder.decodeBase64(ByteFromString);
Best Answer