Back to product page
ToHex method (MemBlob)
Returns content of the blob hex encoded.
Type
A String value.Syntax
- Basic
object.ToHex
The ToHex(object) syntax has these parts:
The ToHex(object) syntax has these parts:
object | An expression evaluating to an object of type MemBlob. |
Remarks
The ToHex property will return a HEX representation of 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 HEX data back into the Blob, you should use the FromHex method.Code sample
- Basic
Dim b As New MemBlob
b.Text = "sometext"
Debug.Print b.ToHex
b.Text = "sometext"
Debug.Print b.ToHex
result:
736f6d6574657874