The CreatorCon Call for Content is officially open! Get started here.

How to call MID server script includes and print those logs

siramdasu
Giga Contributor

How to call MID server script includes and print those logs

1 ACCEPTED SOLUTION

Hi Hemanth,



So for file with <5Mb the base64encoded data is sent properly but for file >5Mb it is breaking. I think the payload field which stores the response from mid server doesn't support that much length. You can break the file size in chunk of 5Mb each and send the base64encoded data and then merge the base64encoded data by writing business rule on ecc_queue table.


I have not implemented this but just a thought on this.



Is it possible to base64-encode a file in chunks? - Stack Overflow



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

11 REPLIES 11

Hi Hemanth,



So for file with <5Mb the base64encoded data is sent properly but for file >5Mb it is breaking. I think the payload field which stores the response from mid server doesn't support that much length. You can break the file size in chunk of 5Mb each and send the base64encoded data and then merge the base64encoded data by writing business rule on ecc_queue table.


I have not implemented this but just a thought on this.



Is it possible to base64-encode a file in chunks? - Stack Overflow



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thank you very much Bawiskar