Hi all.
I've retreived stored as Blob from Oracle database, and get it as binary stream and write it into a file as follows
a1=res.getBlob("item_pic");
long len = a1.length();
int len2=(int)len;
InputStream input=a1.getBinaryStream();
data=new byte[len2];
int byte_read=input.read(data);
String p="C:\\tomcat\\webapps\\test\\jsp\\";
File temp=new File(p,"temp.jpg");
fos=new FileOutputStream(temp);
fos.write(data);
fos.close();
the image is stored in a .jpg file an i'm able to open it and view it with no problems,BUT, when i try to put this image in HTML file using
<img src="temp.jpg" > , i does not work!!!
the HTML file and the image are in the same folder, there is no corruption in the image , i'm able to open it and view it
can any body help me plz, this is driving me nuts!!!1
Regards.
Maher Dabbas