Hello,
For a few days I have been trying to transfer PDF / JPG files via socket from VB6 to B4A. That is working.
But I cannot save this data correctly 1:1 on B4A
I've already tried:
- Windows encodeBase64 --> B4A:decodeBase64 (I tried different Base64 encoding routines on Windows)
- simple hex-encoded (Windows ansi) --> B4A: ASCII and UTF8-Format
- AES_decrypt / encrypt
Either runtime errors occur or only NULL characters are stored when I try to save it in a file.
I used these two ways:
- out.WriteBytes(data64, 0, data64.Length)
- File.WriteString(path, file, s)
Does anyone know a way to encode the file on windows so that it can later be properly decoded in B4A to save it in a file?
By the way, the direction B4A to Windows is working when I use a simple hex-encoding:
Dim Bconv As ByteConverter
datastring = Bconv.HexFromBytes(data)
Thank you!
For a few days I have been trying to transfer PDF / JPG files via socket from VB6 to B4A. That is working.
But I cannot save this data correctly 1:1 on B4A
I've already tried:
- Windows encodeBase64 --> B4A:decodeBase64 (I tried different Base64 encoding routines on Windows)
- simple hex-encoded (Windows ansi) --> B4A: ASCII and UTF8-Format
- AES_decrypt / encrypt
Either runtime errors occur or only NULL characters are stored when I try to save it in a file.
I used these two ways:
- out.WriteBytes(data64, 0, data64.Length)
- File.WriteString(path, file, s)
Does anyone know a way to encode the file on windows so that it can later be properly decoded in B4A to save it in a file?
By the way, the direction B4A to Windows is working when I use a simple hex-encoding:
Dim Bconv As ByteConverter
datastring = Bconv.HexFromBytes(data)
Thank you!