MID Server Script includes calling issue

siramdasu
Mega Contributor

While doing the external database integration, I can send attachment <5mb, but when I try to send >5mb file via mid server the base64 conversion not happened. Am trying to call MID server script includes which consists script of base64 conversion from normal script includes, its not getting called. I used the below syntax to call

var probe = new global.JavascriptProbe('MID_Server_Name');

probe.setName('RandomName');

probe.setJavascript('var Obj = new MidServerScriptIncludesName(); Obj.fileUpload();');

but am unable to access that mid server script includes, so the base64 conversion   not done, in the external database it's going as empty file.

7 REPLIES 7

venkatiyer1
Giga Guru

Hi Hemanth,



Please check the below community article and see if it helps


Attachment SOAP base64 max load


I have tried this but it shown as GlideStringUtil(); cannot be used in scoped applications, I have conversion script in MID server scipt includes that I wan to call in script includes.... the above is the statement I used, but didn't worked


Hi hemanth,



Thanks for clarifying that. Instead of GlideStringUtil, can you try using gs.base64Encode or gs.base64Decode instead?


I have used it for <5mb file conversion, but if I use for >5mb it's not working