Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

display a jpg  RSS feed

 
Dean Reedy
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having problems displaying jpg pictures.
The following works for gif files, but not jpg files.
String Temp="<img src=images/PhotoAlbum/" + photoDescription + " align=center>";
out.println(Temp);
*Note photoDesciption is the file name for example dean.jpg or dean.gif. The gif displays, but not the jpg.
Any ideas?
thanks,
Dean
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should have no problem displaying JPGs in a web browser (I assume that this is what you are using).
Check that the files are actually standard encoded JPGs, and not the newer JPEG 2000 for example or some other format with a ".jpg" extension. Also, check that the JPGs can be found okay.
Hope that helps
Simon
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!