base64 to blob via base64DecodeBytes gives error
Hi,
I have a service that I am utilizing to save files, I have a remote thing written in C# calling it.
Among the fileName and type, I also have the fileData as a parameter of type string, this string is a base64Encdoded blob (byte array).
When I run the base64Encoded byte array througth base64DecodeBytes, I get this error:
JavaException: java.lang.Exception: Unable To Convert From org.json.JSONObject to BLOB
Basically, I am doing something wrong, how do I decode a base64 string into it's underlying byte array so it can be saved with saveBinary? What I think is odd is that the error talkes about a json object, when the FileData parameter is a text type and is a base64 string,
When trying to send the byte array as a string in the json request and sending the file into the saveBinare function, I get this error: JavaException: java.lang.Exception: Invalid length
Kindly
Oskar Berntorp

