[WM 22] Encode Base 64

Startbeitrag von Luis Antonio Gutiérrez Flores am 31.07.2017 20:36

Good afternoon,
I'm having some problems when encrypting an Image in Base64, I can't get it to work, it creates a very long string, longer than other Base64 Encoded images I've seen, and it isn't encoding the complete image, only a very little part at the top is visible. Here is my code:

Right now my path is written just for test. Any help would be appreciated.

TIA

Antworten:

base64 added 30% morevon ccc2 - am 01.08.2017 07:26

Hi,

And what does the result look like?
What makes you think it is incorrect?von Fabrice Harari - am 01.08.2017 12:45

It makes me think it's incorrect, because when I put the string in a base 64 decoder, it only shows the top part of the image, like 1/8 of it, and in another post in this forum I read that Windev mobile base 64 encoding, terminates the string incorrectly.von Luis Antonio Gutiérrez Flores - am 01.08.2017 13:28

Hi,

Using it to send pictures from mobile to server, no problems in encoding and decoding the base64 string. It is between WM22 and .NET, but it also works between WM22 and WD22.