User:anonymousLog inRegister
Recents:
Blobs in Base64

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()

 

 




Created: 04/28/08 12:39 PM by ncuri Last update: 02/06/09 09:38 AM by dmarquez
 
Page
Categories
Group
 
Powered by GXwiki 3.0 (generated with GeneXus X Evolution 1 U3)