I have an API request URL, which will automatically download and save a QRcode image from the browser.
Its Content-Type is application/jpeg, and its form is like this:
application(websiteURl)/egs?cmd=gen_qrcode&customer_id=123&name=abc
Before the slash is my app's URL, and then it is the request's key and value pairs.
When I post this on the browser, it will automatically download a QRcode jpg. However, I want to get the image to jpg(or another image type) to display on my web application and don't wanna save it.
When I use PostMan and save the file, it give me the header informations:
Content-Disposition: attachment; filename="filename.jpg";
Content-Type: application/jpeg;
I am using javascript and Vue, I wonder if there is a way to prevent the autosave and display the image.