Converts a string to a blob datatype.
Blob ( text {, encoding} )
Argument |
Description |
---|---|
text |
The string you want to convert to a blob datatype |
encoding |
Character encoding of the resulting blob. Values are:
|
Blob. Returns the converted string in a blob with the requested encoding, if specified. If text is null, Blob returns null.
If the encoding argument is not provided, Blob converts a Unicode string to a Unicode blob. You must provide the encoding argument if the blob has a different encoding.
This example saves a text string as a Unicode blob:
Blob B
B = Blob("Any Text")
This example saves a text string as a blob with UTF-8 encoding:
Blob Blb
Blb = Blob("Any Text", EncodingUTF8!)