M
mirekp
Guest
details ... DEFINE VARIABLE longCh AS LONGCHAR. COPY-LOB FROM FILE ".../file.json" TO longCh NO-CONVERT. myJson = NEW JsonObject(). myObj = NEW JsonObject(). myObj:ADD("name","test1"). myJson:ADD("template",myObj). myJson:ADD("data",longCh). myObj = NEW JsonObject(). myObj1= NEW JsonObject(). myObj:Add("save", "true"). myObj1:Add("reports",myObj). myJson:ADD("options", myObj1). session:debug-alert = true. log-manager:logfile-name = '.../log.log'. oRequest = RequestBuilder
OST(oURI,myJson) :AcceptJson() :Request. oResponse = ClientBuilder:Build():Client:Execute(oRequest). oEntity = oResponse:Entity. ... (Please visit the site to view this file) on the second side, I save the pdf file the file is always created correctly M.
Continue reading...
Continue reading...