I have made an integration with Gmail and need to convert the Base64 encoded body of the email into the original text.
I am using the following code:
base64Msg = "<Long Base65 String>";
binaryData = Base64Value(base64Msg);
emailContents = GetStringFromBinaryData(bdata);
The problem appears on the 2nd line. the return type of the function Base64Value() returns Undefined.
Is it because the string is too big?
How can i oveercome this problem?
The base64 string i put below. It is converted sucesfully if i copy-paste it in through the online tool:
The 1C:Enterprise developers forum