-
image retrieve (6 messages)
- Posted by: MAT wang
- Posted on: February 14 2001 23:09 EST
I successfully inserted the Blob gif image into oracle db. I also know how to retrieve by usin getBlob() but how can I convert the byte[] into gif and place into my jsp?<img src="xxx"> xxx is the gif file.Threaded Messages (6)
- image retrieve by Nayana Naik on February 16 2001 03:46 EST
- image retrieve by MAT wang on February 16 2001 12:32 EST
-
image retrieve by Nayana Naik on February 19 2001 03:36 EST
- Re: image retrieve by Upeksha Dharma on September 05 2007 08:52 EDT
-
image retrieve by Nayana Naik on February 19 2001 03:36 EST
- image retrieve by MAT wang on February 16 2001 12:32 EST
- how to store an image in oracle using BLOB by ravindra nekkalapudi on February 17 2001 05:15 EST
- how to store an image in oracle using BLOB by MAT wang on February 18 2001 20:11 EST
-
image retrieve[ Go to top ]
- Posted by: Nayana Naik
- Posted on: February 16 2001 03:46 EST
- in response to MAT wang
hi there ..
u can use gifencoder for that
or there is jpegencoder too.
bye
nayana
-
image retrieve[ Go to top ]
- Posted by: MAT wang
- Posted on: February 16 2001 12:32 EST
- in response to Nayana Naik
But I can't find in JDK1.2 and J2EE api?Can you tell me where it is? -
image retrieve[ Go to top ]
- Posted by: Nayana Naik
- Posted on: February 19 2001 03:36 EST
- in response to MAT wang
hey MAT if u wanna those files..give me ur mail id.i will mail u those files.
bye for now
nayana
-
Re: image retrieve[ Go to top ]
- Posted by: Upeksha Dharma
- Posted on: September 05 2007 08:52 EDT
- in response to Nayana Naik
hi Nayana, Please help me tooooo Same problem here :o( -
how to store an image in oracle using BLOB[ Go to top ]
- Posted by: ravindra nekkalapudi
- Posted on: February 17 2001 05:15 EST
- in response to MAT wang
hi,
can please send the code you written for storing a .gif file
in a BLOB field of Oracle database.
thanks
ravindra -
how to store an image in oracle using BLOB[ Go to top ]
- Posted by: MAT wang
- Posted on: February 18 2001 20:11 EST
- in response to ravindra nekkalapudi
PreparedStatement pstmt = conn.prepareStatement(
"INSERT INTO PHOTO VALUES( ?, ? )" );
pstmt.setString( 1, "photo1");
File a = new File("1.gif");
FileInputStream b = null;;
try{
b = new FileInputStream(a);
}catch(java.io.FileNotFoundException fn){fn.printStackTrace();}
pstmt.setBinaryStream( 2, b, (int)( a.length()) );
pstmt.executeUpdate();