P
Peter Judge
Guest
You can do something like the below. The important parts are - don't BASE64-ENCODE the memptr - specify the content type (may not have one) def var oBody as class OpenEdge.Core.Memptr. COPY-LOB FROM FILE "C:\Users\me\Desktop\testupload.xlsx" TO encdmptr NO-CONVERT NO-ERROR. oBody = new Memptr(encdmptr). /* send post request for token */ oRequest = RequestBuilder
ost(cWebServiceUrl, oBody, ' application/vnd.openxmlformats-officedocument.spreadsheetml.sheet ') // or whever's needed :AcceptContentType("application/json;odata=verbose") :AddHeader("Authorization", "Bearer " + cAccessToken) :Request. finally: set-size(endcdmptr) = 0. //cleanup end.
Continue reading...
Continue reading...