Back Forward Base64 encoding

Base64 encoding is a software technique that converts a binary data object (such as a JPG image, or a compiled Windows DLL or EXE file) into ASCII text, so that it can be saved or transmitted by facilities that use only text characters, such as many email systems. Base64 encoding is lossless, platform-independent and endian independent.

For example, SOAP and XML operations using HTTP on the World Wide Web are limited to UTF-8 characters, and so often use Base64 encoding for binary objects.

PRPC employs Base64 encoding to store objects in Rule-File-Binary rules, in file attachments to work items, and to store scanned documents (TIFF images).

Use the standard functions Base64Encode() and Base64Decode() in the PegaRULES Default library to convert objects to and from this encoding.

Advanced featureFor sample Java code that decodes a Base64 object stored in the PegaRULES database and downloads the result to a workstation file, review the standard activity Work-.DisplayAttachFile.

Definitions attachment, binary file, SOAP
Related topics About Binary File rules

UpDefinitions