how to upload an image on the server and view it back without deploying the uploaded image?

Hi all,
I want to upload an image from a html page. This image goes to the server and server writes it to the disk. Now i want to view the image. Normally we can do it. But How will I achieve this without deploying the image on the server. Means that the written file is outside the webApp folder…??

Thanks

  • your question is not related to codechef at all, is it ?
  • if the uploaded picture is written on the server, but not in the web subtree, your web server won’t be able to read it
  • if the picture is not written on the server itself, it won’t be able to send it to the client itself, but can ask the client to query another server. (in HTML, it’s simply the tag)
1 Like