• Post Reply Bookmark Topic Watch Topic
  • New Topic

Viewing Pictures

 
Pandian Lion
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai There,
Can anyone explain me abt viewing pictures ( .gif,.jpeg) etc in jsp?
Thx in advance
:-)
------------------
Something is better than nothing!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember - a JSP is just a way of making an HTML page - if you look at an HTML page that has images on it you note that each image comes from a separate <img tag - that means a SEPARATE request to the server is generated for each image. You can't mix binary image data with HTML page character output.
JSP assumes you will be writing characters so it is not suited to generating binary image data. If you have to create images on the fly, do it in a servlet.
Bill
------------------
author of:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!