Hi, how to automate the decode base64 code and save as a pdf in postman and download it to the desire location. Thanks in advance
Hi @azhagupattabi!
Welcome to the community!
I see you posted this comment on my video as well. Iβll leave the same response here:
So this isnβt exactly possible within Postman, at least to my knowledge. In the Postman Tests section, the node js module βfsβ isnβt accessible, and therefore Postman doesnβt have a way, or privileges to write to the file system. There are different ways you can overcome this, such as with your own local web service, but natively in Postman, itβs not possible.
However, you can use Postman newman to do this, where you can import the fs module, and write the resulting file to a file location.
In addition, there may be other ways you can accomplish this. Iβd suggest searching in the forum here to find other possible solutions.
Hope this helps!
Best,
Orest