OT-Exibir un "byte[] imgBytes" via JSP

From: <sandrigo(dot)lezcano(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: OT-Exibir un "byte[] imgBytes" via JSP
Date: 2005-10-31 02:02:49
Message-ID: 1a5d58e60510301802o43d8f635i194c0db3af99a678@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

perdon por el OT..
pero ya he buscado bastante por el tema
e no puedo encontrar o enteder como
puedo a partir de tener mi imagem
en memoria, incluirlo dentro de um
HTML <IMG SRC=> tag ? via JSP

del manual (http://www.javalinux.com.br/pg74/jdbc-binary-data.html)

ps.setString(1, "minha_imagem.jpg");
ResultSet rs = ps.executeQuery();
if (rs != null) {
while (rs.next()) {
byte[] imgBytes = rs.getBytes(1);
// como a partir de esto puedo montar mi HTML ??
}
rs.close();
}
ps.close(

Cualquier ayuda me biene bien..

Perdon por el OT
Att
--
_______________________________________
sandrigo(dot)lezcano(at)gmail(dot)com ICQ:143590717
RUA INDEPENDENCIA 135 - BOA VISTA
CEP 06411-050 - Barueri/SP/Brazil
FONE 11 4198-1095
Vip-Systems Informatica
http://www.vip-systems.com.br
===============================

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2005-10-31 05:54:49 Re: XADataSource interface
Previous Message Heikki Linnakangas 2005-10-30 20:07:24 Re: XADataSource interface