Back to product page
ToBase64 method (StreamBlob)
Returns content of the Blob base64 encoded.
Type
A String value.Syntax
- Basic
object.ToBase64
The ToBase64(object) syntax has these parts:
The ToBase64(object) syntax has these parts:
object | An expression evaluating to an object of type StreamBlob. |
Remarks
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 in this way for transfer by text-only services, such as email.To get BASE64 data back into the Blob, you should use the FromBase64 method.
Code sample
- Basic
Dim b As New StreamBlob
Set b.Stream = ref_stream
b.Text = "sometext"
Debug.Print b.ToBase64
Set b.Stream = ref_stream
b.Text = "sometext"
Debug.Print b.ToBase64
result:
c29tZXRleHQ=