Blobs in Base64

Unofficial Content

The following functions have been implemented in GeneXus X to get and set a Blob file content in Base64:

  • ToBase64String(): Returns Blob file content in Base64.
  • FromBase64String(): Loads the content in Base64 received by parameter into the Blob file.

These functions may be used as follows:

ContentBase64 = <att | var>.ToBase64String()
<att | var>.FromBase64String(ContentBase64)

ContentBase64 contains the Base64 content and could be a LongVarChar, for instance.

So far, when a Web Service with a returning Blob parameter is called, the returned value will be the Blob's file content in Base64.

ContentBase64 = WebServiceBlob.Execute()