wodCrypt ActiveX Control - ToBase64 Method
      
 

Description

Returns the contents of the Blob in a base64 encoded string.


Return Type

A String value.  BASE64 representation of Blob contents.


Syntax

object.ToBase64



The ToBase64 Method syntax has these parts:

Part Description
object An expression evaluating to an object of type FileBlob.

Remarks

WARNING: you should not use this method with large files, or large amounts of data!

The ToBase64 property will return a BASE64 representation of the data currently contained by the Blob. It is most often used because it is easier to represent binary data this way for transfer by text-only services, such as email.

To get such BASE64 data back into the Blob, you should use the FromBase64 method.

You can use this method as easily as this:

Dim b As New FileBlob
b.Text = "sometext"
Debug.Print b.ToBase64

result:
c29tZXRleHQ=