Posted: Fri Feb 15, 2019 4:01 am Post subject: How to insert blob data in JSON message (IIBv10)
Guest
Hi,
I am trying to a read a file using fileread node and then forming a JSON with file data as BLOB, this works fine when the file size is below 10KB but the output data is being deleted when file size is above 10KB.
IIBvesrion : IIBv10.0.0.10
Here is my piece of code :
SET OutputRoot.Properties.ContentType = 'application/json';
SET OutputRoot.JSON.Data.fileData = InputRoot.BLOB.BLOB;
Output for below 10KB file : {"fileData":"4e0d0a4441547c2d544153554b327c3230322d3930383330327c55343333387c303032367c50527c5448495320495320544845204445534352495054494f4e205448495320495320544845204445534352495054494f4e20434f4e54494e5545447c7c4255597c436f6e666967757265647c45204f20462b20542b20586e7c7c307c3"}
Output for above 10KB file : {"fileData":"{"fileData":""}
Not sure If I am missing any configuration here, Appreciated any help in this regard ?
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