- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 02:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 06:29 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 05:02 AM
Hi Hemanth,
is your mid server up and running and validated?
Also can you share the mid server script include code and how you are calling that.
Also when you call mid server script include as per that article it creates an ecc queue entry with queue as output. Are you getting response from mid server also with queue as input.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 05:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 05:44 AM
Actually in Mid sever script includes, I have written base64 conversion for an attachment which is more than 5mb size, as the script is not getting called when external db receives the file, it was an empty as just 1kb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 05:54 AM
Hi Hemanth,
So I think your script is getting error because of the size issue of file.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 05:59 AM
Actually for large size it's been sent via mid server.... for normal file <5mb gs.base64 is used, for >5mb mid server scriptincludes is written and trying to call from script includes, the syntax too I didn't found wrong.. can u assit if any wrong tin thius