cancel
Showing results for 
Search instead for 
Did you mean: 

How to send base64 string through POSTMAN Client

Phani_Kumar
Participant
0 Kudos
2,865

Dear Experts,

I am doing an object related to Object Store in SAP BTP. I would like to update an existing image with a new image.

To do this, I wanted to send base 64 string as CONTENT .But I am not sure how to send this BASE64 String in POSTMAN Client(Update Method).

If I am able to send BASE64 String through Post Man CLient and if the image gets updated with new one, then I can use the same base 64 string in the real Application as well.

Can you please help me understand what is the best way to send base 64 string via postman Client

Accepted Solutions (0)

Answers (1)

Answers (1)

pfefferf
Active Contributor

What is your goal? To create the base64 encoded string by the Postman call itself or creating the base64 string by an "external" encoding utility and enter it manually.

For the "external" approach there are many tools available out there. For the "internal" approach, you could use a pre-request script which uses the base64 encoding functionality of the crypto-js node module. The result can be stored in an environment variable which is then embedded in your request body.

Phani_Kumar
Participant
0 Kudos

Hi florian.pfeffer

Thank you for your response. Well I am trying to achieve Upload an Image to Object Store in SAP BTP.

for this,I have written an application and when I use postman for testing , I am uploading a File Physically and it is getting uploaded correctly.

But In reality through UI5 Application,we cannot have the real File in the Project Directory, instead when we use FileUPloader Control, we have Base64 String of the corresponding File.So Now I wanted to copy this base 64 string and use this in PostMan just to see the update still works or not.

I don't know in which format or how to send this base64 string via Post man. Please let me know if you have any idea on this.