Hola quisiera saber como mostrar una imagen almacenada en bd en un PDf en codigo jsp
Tengo este codigo en una clase llamada PDF
Código jsp:
Ver originalwhile (rs.next())
Blob bin = rs.getBlob("ImgPerro");
if (bin != null) {
InputStream inStream = bin.getBinaryStream();
int size = (int) bin.length();
buffer = new byte[size];
int length = -1;
int k = 0;
try {
inStream.read(buffer, 0, size);
} catch (IOException ex) {
ex.printStackTrace();
}
if (buffer != null) {
JOptionPane.showMessageDialog(null,"Respo"+response);
ServletOutputStream out2 = response.getOutputStream();
out2.write(buffer);
cell = new PdfPCell(new Paragraph("Nombre Canino"));
cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setBackgroundColor (BaseColor.LIGHT_GRAY);
tabla.addCell(cell);
cell = new PdfPCell(new Paragraph(String.valueOf(rs.getString (10)),fuente10 ));
tabla.addCell(cell);
Image im = Image.getInstance(buffer);
cell = new PdfPCell(new Paragraph(String.valueOf(im),fuente10 ));
cell.setRowspan(2);
tabla.addCell(cell);
La excepcion que me muestra es UnsupportedOperationexception:not supported yet
Gracias