The web server generates images and sends them directly to the client. For security reasons, no images. For example, if I enter the /images/25 URL in the browser, it will send it and the browser will download it.
Now I want to get this image from an Ajax call, and then display it on an existing page. I can get image data. My question is: how can I display an image?
$.get("/images/25", function (rawImageData) {
Update
I apologize for being so stupid. Thanks, JW. Of course, I can just put the img tag with src in my URL. It does not matter if this is the direct URL of the image file or whether the server sends it dynamically.
Evgenii
source share