hello,
I am retrieving the blob field with de following code:
----------
rs = st.executeQuery(sql);
if (rs.next()){
foto = rs.getBlob(1);
length = (int)foto.length();
InputStream in = foto.getBinaryStream();
buffer=foto.getBytes(0, length);
int bufferSize = 1024;
buffer = new byte[bufferSize];
while ((length = in.read(buffer)) != -1) {
miFicheroSt.write(buffer, 0, length);
}
}
----------
when I do:
<img src="../../tmp/<%out.println(nomFitxer);%>">
from a jsp file, it doesn't display a jsp.
It say that is not the correct format
Can you help me?