A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
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 app for network diagnostics
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.
It is sorta covered in the
JavaRanch Style Guide
subject: Display image in Jsp page
img tag in jsp
problem with displaying the image from local disk in jsp page
Putting an image on JSP
Writing Image Bytes on Response Stream
JSP page not displaying the image
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014