Retrieving and displaying image from server using JSP

前端 未结 1 535
无人共我
无人共我 2021-01-28 08:08

I have certain piece of code which helps me to save the image on server. I need to know how to display the saved image on div.

JSP CODE:

<%Str         


        
相关标签:
1条回答
  • 2021-01-28 08:13
     fileName = new File("D:/../images/"+saveFile;).getName();
    

    use this variable to get name and then call fileName in your img src. Hope this helps.

    0 讨论(0)
提交回复
热议问题