-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving binary responses as a file results in base64 #634
Comments
Can you try using the "Send and download" option with the Interceptor on? |
Works as expected with 'Send and download' |
Yes, "Send and download" works fine. I believe back in July that did not exist though. |
How does "Send and download" works? can anyone help me with internal details? Cheers |
'Send and download' makes the XHR request with responseType set to "arraybuffer", which returns the data as binary. |
@abhijitkane thanks for the elegant solution. Used blob further to complete the function. |
Thanks, Postman is too cool. Save me tons of time |
How to handle file download request from Newman? Can someone please answer? Postman's 'Send and download' doesn't handle it quite gracefully as I can see filename returned in response header along with file type whereas Postman simply opens up save as window without providing the actual file name returned from server as if Postman doesn't know what file was returned from server. |
How can we find out what is internally done in Send and Download and replicate the same in JAVA code. Send and Download is working perfectly for me but when run from JAVA it is writing JUNK to the file in local |
Any shortcut for "send and download" in the GUI ? |
@daniel2xo As of now, no. But we're working on a release that has buffed shortcuts. I'll add it there. Will let you know here when it is out. |
Thanks @madebysid for reply, actually i dont know how to create a java file to call an api and get save the respond repeatedly, so wish to have a shortcut for that. |
this is still an issue, had to turn off Interceptor for the PDF to be created correctly... |
Hi, |
If I make a request to a server and the server replies with binary content (such as application/pdf), Postman asks me to save it as a file. If I do that, the file doesn't contain the actual bytes, but a base64 string. This only happens if the interceptor extension is enabled.
The text was updated successfully, but these errors were encountered: