Set the JSON Body from an External File in Postman

Some APIs require you to send a JSON request body where one of the properties represents the contents of a file, quite often, base64 encoded. So how to do this?

The problem with uploading a file when using JSON

In Postman, you can easily upload a file when creating a request with a multipart/form-data body type. But how to do the same when the request body is JSON. Let’s take this…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Valentin Despa

Valentin Despa

Software developer and online instructor. Imprint: http://vdespa.com/imprint