PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Decodes a character string that was encoded by Encode.
Versions 23 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
New in version 23
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Example
// Encode an image in base64
Res is string = Encode(fLoadBuffer("MyImage.jpg"), encodeBASE64)

// ...

// Decode the image
DecodedImage is Image = Decode(Res, encodeBASE64)
Syntax
<Result> = Decode(<Element to Decode> [, <Encoding/Decoding Format>])
<Result>: Character string or Buffer
Result of decoding.
<Element to Decode>: Character string
Data to decode. This data was encoded by Encode.
<Encoding/Decoding Format>: Integer constant
Specifies the type of encoding performed. This parameter must be identical to the one chosen during the coding.
encodeBASE64
(Default value)
BASE 64 format (complies with the RFC 4648 standard). The encoded text contains printable characters only.
encodeBASE64URLBASE 64 URL format (complies with the RFC 4648 standard). The encoded text contains printable characters only.
encodeBASE85BASE 85 format. The encoded text contains printable characters only.
Versions 23 and later
AndroidAndroid Widget Unsupported format.
New in version 23
AndroidAndroid Widget Unsupported format.
AndroidAndroid Widget Unsupported format.
encodePCSASCII format. The encoded text contains printable characters only.
Versions 23 and later
AndroidAndroid Widget Unsupported format.
New in version 23
AndroidAndroid Widget Unsupported format.
AndroidAndroid Widget Unsupported format.
encodeURLToAnsiURL format. The encoded text only contains characters allowed in a URL. The decoded text is an ANSI string. This constant corresponds to the encodeURLFromAnsi constant used in Encode.
encodeURLToUTF8URL format. The encoded text only contains characters allowed in a URL. The decoded text is a UTF-8 string. This constant corresponds to the encodeURLFromUTF8 constant used in Encode.
encodeURLToUnicodeURL format. The encoded text only contains characters allowed in a URL. The decoded text is a Unicode string. This constant corresponds to the encodeURLFromUnicode constant used in Encode.
encodeUUEncodeUUEncode format. The encoded text contains printable characters only.
Versions 23 and later
AndroidAndroid Widget Unsupported format.
New in version 23
AndroidAndroid Widget Unsupported format.
AndroidAndroid Widget Unsupported format.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
WEBDEV - Browser code WDJS.DLL
Linux wd230std.so
Android wd230android.jar
Minimum required version
  • Version 22
This page is also available for…
Comments
IMAGEM STRING
//VOU MOSTRAR HOJE, COMO TRANSFORMAR
//UMA IMAGEN EM STRING E TRANSFORMAR
//UMA STRING EM UMA IMAGEM

IMG_IMAGEN_1 = "c:\ICONES\IC_OK_N.PNG" // VALIDADO
EDT_IMAGEN_TEXTO=Encode(fChargeBuffer(IMG_IMAGEN_1),encodeBASE64)
//--
IMG_IMAGEM_VOLTA = Decode(EDT_IMAGEN_TEXTO,encodeBASE64)

//BLOG COM VIDE E EXEMPLO

http://windevdesenvolvimento.blogspot.com/2017/08/aula-1237-windev-imagen-006-encodedecode.html

https://www.youtube.com/watch?v=KLr4-1wg_WQ


De matos
Aug. 11 2017