What could be wrong in arrayDecode(base64Decode(tTempArray))?
Posted: Fri Jan 07, 2022 10:28 am
My standalone is saving a user array log using
The standalone uses "on errorDialog pExecutionError" in order to collect execution errors and send them to my cloud DB
Yesterday I received an error message from a user on line 2 of this
Clearly there was some special character in the array that broke one of the two commands (base64Decode or arrayDecode)
I don't think it is possible that the tTempArray wasn't an array.
While I cannot know the content of tTempArray, since was saved locally and, beside, the user since then has gone over it, is there a way so that, on saving, I can be sure that it can be read without error? (beside using a Try,end Try control)?
Thanks
Code: Select all
put base64Encode(arrayEncode(gTempArray)) into tArray
put tArray into URL ("binfile:" & sLogPath) --save to file
Yesterday I received an error message from a user on line 2 of this
Code: Select all
put URL ("binfile:" & sLogPath) into tTempArray--load the pref file
put arrayDecode(base64Decode(tTempArray)) into gTempArray --holds all the data to be updated locally
I don't think it is possible that the tTempArray wasn't an array.
While I cannot know the content of tTempArray, since was saved locally and, beside, the user since then has gone over it, is there a way so that, on saving, I can be sure that it can be read without error? (beside using a Try,end Try control)?
Thanks