|
Decode a base64 string on Android |
Iniciado por jd, jul., 06 2015 10:56 AM - 5 respostas |
| |
| | | |
|
| |
Membro registado 5 mensagems |
|
Publicado em julho, 06 2015 - 10:56 AM |
Perhaps a very simple question but I just can't find a solution to decode a base64 string in windev on Android? (When using Uncrypt on Android, encodeBASE64 is ignored) |
| |
| |
| | | |
|
| | |
| |
Publicado em julho, 06 2015 - 2:47 PM |
Hi Jozef
From the top of my head, the encodebase64 is not available for android, so you need to either decode it yourself in wlanguage (the algorithm for base64 is not very complex) or find a java function doing that and call it.
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Already there: WXShowroom.com, WXReplication (open source) Coming soon: WXEDM (open source) More information on http://www.fabriceharari.com
On 7/6/2015 2:56 AM, Jozef DUIN wrote:
Perhaps a very simple question but I just can't find a solution to decode a base64 string in windev on Android? (When using Uncrypt on Android, encodeBASE64 is ignored) |
| |
| |
| | | |
|
| | |
| |
Membro registado 37 mensagems |
|
Publicado em julho, 07 2015 - 4:42 PM |
Hi, Decrypting a stream in base64binary format To decrypt a string encrypted in base64, you must use:
ResultString = Uncrypt(EncryptedString, "", cryptNone)
see help http://doc.windev.com/en-US/…
and be carefull with ANSI and UNICODE string convertion
Best regards |
| |
| |
| | | |
|
| | |
| |
Membro registado 4.521 mensagems |
|
Publicado em julho, 08 2015 - 1:21 PM |
| |
| |
| | | |
|
| | |
| |
Publicado em setembro, 24 2018 - 7:21 PM |
Hi, I haver the version 21 of Windev movile, thren I have a problem, basicaly I can't use the funtion encodeBASE64, there some alternatives to convert a image and send it in a request? |
| |
| |
| | | |
|
| | |
| |
Publicado em setembro, 24 2018 - 10:37 PM |
Hi Alexandro,
considering the speed of evolution of Android, I strongly suggest that you upgrade to 23, and solve your base64 problem that way...
However, if you still want to code in v21, then you can create your own function to encode in base64, it's not very complex and there are algorithm available easily on the web
You can also simply use buffertohexa, and transfer your binary image as an hexa encoded string (much longer than base64, though)
best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Free Video Courses, free WXShowroom.com, open source WXReplication, open source WXEDM.
More information on http://www.fabriceharari.com
On 9/24/2018 11:21 AM, Alejandro wrote:
Hi, I haver the version 21 of Windev movile, thren I have a problem, basicaly I can't use the funtion encodeBASE64, there some alternatives to convert a image and send it in a request? |
| |
| |
| | | |
|
| | | | |
| | |
|