ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to convert JSON into BLOB using ESQL

Post new topic  Reply to topic
 How to convert JSON into BLOB using ESQL « View previous topic :: View next topic » 
Author Message
EBM014
PostPosted: Sun Nov 05, 2017 2:44 am    Post subject: How to convert JSON into BLOB using ESQL Reply with quote

Newbie

Joined: 05 Nov 2017
Posts: 2

Hi,

How can I convert a JSON input into BLOB? Tried below samples but it is returning EMPTY. Can anyone show the correct way?

SET OutputRoot = InputRoot;

or

Used Reset node and used BLOB as domain still not worked.

or

CREATE LASTCHILD OF InputBlob DOMAIN('BLOB') PARSE(InputRoot.JSON);
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Nov 05, 2017 6:55 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

You are using the wrong verb.
Use PARSE when you are trying to transform a bitstream into a message tree.
Use ASBITSTREAM when you are trying to transform a message tree into a bitstream.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rekarm01
PostPosted: Tue Nov 07, 2017 8:24 pm    Post subject: Re: How to convert JSON into BLOB using ESQL Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

EBM014 wrote:
Used Reset node and used BLOB as domain still not worked.

A ResetContentDescriptor node can also convert JSON to BLOB.

"still not worked" is not very descriptive.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to convert JSON into BLOB using ESQL
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.