File upload as JSON base64 encoded
Valentin Despa Valentin Despa
59.5K subscribers
30,560 views
167

 Published On Mar 4, 2021

This tutorial takes a look at how you can upload a file and send it as a JSON payload encoded in base64.

Commands used in this tutorial:

openssl base64 -in latin.txt
export FILE_CONTENTS=`openssl base64 -in latin.txt`
newman run collection.json --global-var "fileContents=$FILE_CONTENTS" --reporters htmlextra

___

// POSTMAN COMPLETE GUIDE ONLINE COURSE

👉 Want to learn more about Postman? Check my Postman online course.

Get it at a special price and help support this YouTube channel:

https://vdespa.com/courses/

___

// I HAVE A QUESTION!

I do my best to answer all comments here on YouTube but I cannot make any guarantees.

If you have a question, it is best to ask your question on the Postman User Group on Discord (  / discord  .

If you have purchased the Postman Online Course, please use the Q&A section or send me a message on Udemy.

Please do not email me or contact me on other channels as I might not be able to answer. Sorry!

___

// I HAVE A VIDEO IDEA

Do you want me to create a video on a specific topic? Just fill out the form below:

https://forms.gle/uWEzXFQ2viJtZtvZ7

___

// P L A Y L I S T S

▸ Learn Postman | http://bit.ly/2CFaf70

▸ Postman Crash Course | http://bit.ly/2YwEBBT

▸ Postman Tips & Tricks | http://bit.ly/2JLkXyU

___

// F R E E R E S O U R C E S

▸▸▸ DOWNLOAD the FREE Postman Quick Reference Guide
http://bit.ly/postman-quick-reference-yt

▸▸▸ Ask a question on Discord
  / discord  

▸▸▸ JOIN the Postman User Group on Facebook
http://bit.ly/2OutAMZ

▸▸▸ The OFFICIAL Postman community forum
https://community.getpostman.com/

▸▸▸ 👉 Subscribe to the "Testing and automation with Valentine" newsletter for bi-weekly tutorials, tips, and news from the industry.
http://eepurl.com/gPwpU1

___

// IMPRINT

http://vdespa.com/imprint

---

show more

Share/Embed