How to cast(convert) string to blob? in ESQL?
-
10-06-2021 - |
Вопрос
So i am reading an XML file from request note of flow. And need to convert XML data to blob.
Решение
Try something like this:
CAST( MYLITTLESTRING AS BLOB CCSID InputRoot.Properties.CodedCharSetId)
Другие советы
If you receive messages from both ASCII and EBCDIC based platforms you should include a CCSID often based on the inbound messages CodedCharSetId.
DECLARE StaticValueBlob BLOB CAST('StaticValue' AS BLOB CCSID InputRoot.Properties.CodedCharSetId);
If you are looking to get the whole XML document as a BLOB then you will want to use the ResetContentDescriptor Node instead.
Не связан с StackOverflow