A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Display image in Jsp page
Joined: Dec 11, 2008
Dec 07, 2009 00:31:46
I want to show one image in jsp page. i have stored that image in my Local Disk "D Drive".
<html> <body> <imgsrc="d:/image.jpg"> ( This image tag does not show any image ) </body> </html>
will call all the stuff from the server side even an image)
Please help me how to show the local disk image file in jsp page
Joined: Mar 22, 2005
Dec 07, 2009 01:12:00
The image must be in a publicly accessible directory; a path like "D:\..." will not work. Also note that "imgsrc" is not a valid HTML tag name.
Ping & DNS
- my free Android networking tools app
Author and ninkuma
Joined: Jan 10, 2002
Dec 07, 2009 08:36:32
I see no JSP dimension to this question at all. Moved to the HTML forum.
Asking smart questions
Books by Bear
Joined: Nov 08, 2001
Dec 07, 2009 10:11:42
Browser security does not let you view any files that are located on the users computer. In the past this was not true, but in today's day in age with security it is.
I agree. Here's the link:
subject: Display image in Jsp page
JSP page not displaying the image
Putting an image on JSP
problem with displaying the image from local disk in jsp page
img tag in jsp
Writing Image Bytes on Response Stream
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014