File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Proble displaying images dynamically in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Proble displaying images dynamically in jsp " Watch "Proble displaying images dynamically in jsp " New topic

Proble displaying images dynamically in jsp

Phani Sajja

Joined: Mar 08, 2009
Posts: 3
Hi, I am new here. I have to display the images dynamically reading from a database. I have no problem displaying images. When i try to reduce the width in img tag then it is slowly rendering it. How to overcome this.

<img src="image.jsp?imgID=112" width="150" heigth="130" border="0">

I am also giving the sample jsp to display

byte [] imgData = blob.getBytes(1,(int)blob.length());
OutputStream o = response.getOutputStream();

I want to display the image without any time taken. How could I solve this. Please Help me.

Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2764

"javax programmer " Welcome to Javaranch
please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.

|Asking Good Questions|
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
This topic is crossposted twice at the Sun forum around the same time.
Please read this:
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Proble displaying images dynamically in jsp