12 messages in com.mysql.lists.javaRe: displaying bolb on browser!!| From | Sent On | Attachments |
|---|---|---|
| Tim Endres | 03 Jan 2001 20:18 | |
| Satish plakote | 04 Jan 2001 07:42 | |
| Michael Besteck-Resulta | 04 Jan 2001 08:25 | |
| Mari...@amsinc.com | 08 Jan 2001 00:47 | |
| Gary Bentley | 08 Jan 2001 01:53 | |
| Tim Endres | 08 Jan 2001 11:02 | |
| jalal ud din | 08 Jan 2001 23:01 | |
| Christopher Abney | 11 Jan 2001 15:40 | |
| sch...@amgt.com | 11 Jan 2001 16:04 | |
| Christopher Abney | 11 Jan 2001 18:15 | |
| Carlos Garcia Jurado Suarez | 11 Jan 2001 18:25 | |
| Igor Fedulov | 11 Jan 2001 18:28 |
| Subject: | Re: displaying bolb on browser!!![]() |
|---|---|
| From: | Michael Besteck-Resulta (mib...@gmx.de) |
| Date: | 01/04/2001 08:25:46 AM |
| List: | com.mysql.lists.java |
Hello Satish,
i probably do not have the optimal solution, but one that shall work: Use double buffering, in detail:
Image hiddenImage; Graphics hiddenGraphics; ... hiddenImage = createImage(aWidth, aHeight); hiddenGraphics = hiddenImage.getGraphics(); ... // process Your binary large object image data using draw.., paint... functions to output e.g: hiddenGraphics.drawBytes(byte[] data, int offset, int length, int x, int y) //// quoted:" Draws the text given by the specified byte array, using this graphics context's current font and color." // Or any other methods of the Graphics object (e.g. use drawRect for setting single pixels) ... then output Your hidden image. The paint method can be used: ... g.drawImage(hiddenImage,...); ... And as usual for double buffering, be sure that Your update method contains nothing but a call to the paint method.
Hope that helps You.
Greetings
Michael
----- Original Message ----- From: "Satish plakote" <sati...@usa.net> To: <ja...@lists.mysql.com> Sent: Thursday, January 04, 2001 8:42 AM Subject: displaying bolb on browser!!
hi , Can somebody tell me how to display a blob data type on to a browser. I have written a servlet to get the blob datatype from the database and i have it stored in a byte array. Now how do i display the image which is in binary format in the byte array on to the browser. Any suggestions in this regard will be of great help. satish
____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1
--------------------------------------------------------------------- Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before posting. To request this thread, e-mail java...@lists.mysql.com
To unsubscribe, send a message to the address shown in the List-Unsubscribe header of this message. If you cannot see it, e-mail java...@lists.mysql.com instead.




