Hi
I am using this code in B4J but in B4A it does not work when using RDC
it comes up with : java.io.IOException: Bad Base64 input character decimal 91 in array position 0" error
In the SQL it is decoded and stored as longblob
any clues ?
thanks AH
I am using this code in B4J but in B4A it does not work when using RDC
it comes up with : java.io.IOException: Bad Base64 input character decimal 91 in array position 0" error
In the SQL it is decoded and stored as longblob
B4X:
Dim su As StringUtils
Dim b() As Byte = su.DecodeBase64(records(6))
Dim in As InputStream
in.InitializeFromBytesArray(b, 0, b.Length)
Dim out As OutputStream
out=File.OpenOutput(File.DirDefaultExternal, records(5) & ".db",False)
out.WriteBytes(b, 0, b.Length)
out.Flush
out.Close
thanks AH