File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes problem with displaying image..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "problem with displaying image....." Watch "problem with displaying image....." New topic

problem with displaying image.....

Gabriel Fox
Ranch Hand

Joined: Oct 17, 2001
Posts: 170
Hello guys, i have downloaded a xyz.jpg image from my digital camera unto my desktop computer.
But, the image has an extremely large size , 161kb
and again it does not show on my webpage (an html page), i am using the right url <img src="/">.
Please, what do U think the problem is.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33127

Try using an absolute path to get the image to see if it is a problem with the path or the file. Also try using a filename with only one dot.
Also, netmechanic has a good, free Converter that you can use to make your gif smaller.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Gabriel Fox
Ranch Hand

Joined: Oct 17, 2001
Posts: 170
Sorry, that was a typo
url <img src="/images/xyz.jpg">.
The image was referenced correctly. i have other images in the same webpage being displayed with a similar path.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
ways to check
Make sure that the pic exsists in the image folder
Make sure the name is spelled right
make sure the image is in jpg format

change name to pic that has no problems and see if it shows up
add height and width attributes
See if any of that helps
I agree. Here's the link:
subject: problem with displaying image.....
It's not a secret anymore!