Good morning, evening, and good night (depending o...
# general
m
Good morning, evening, and good night (depending on your location :D) NS folks, RESTLET QUESTION: Anyone have experience passing in attachments to a RESTlet? I have created some APIs using RESTLet. All my GETs work just as expected. My POST creates a Vendor Bill. The 3rd party is able to call the POST and GETs just fine. The last bit I am trying to complete is them sending a PDF attachment with the POST. There isn't much documentation for this, and from what I read, I am under the assumption this is not possible as the RESTlet will not accept that content-type. All my tests have been with POSTMAN. I am able to pass a raw JSON in the body with the POST but not the file
t
@Michal Zelazny One way to handle attachments is by passing in Base64-encoded content in the payload. An example is here: https://timdietrich.me/blog/netsuite-file-cabinet-suitescript-suiteql-restlet/
m
Thank you for the quick response. I will take a look at this.