how to retrieve image from mysql database using java and show it in HTML img tag
hi friend,
you can use the following line of code for retrieving the image from database as :
InputStream is = rs.getBinaryStream(3);
Or, you can also use the following code as :
Blob blobImage = rs.getBlob(columnIndex); InputStream is = image.getBinaryStream();
Ya. I already seen that code. But I want to display it in HTML tag. How to do this? Thanks in advance.
Ya. I already seen that code. But I want to display it in HTML img tag. How to do this? Thanks in advance.
Ya. I already seen that code. But I want to display it in HTML img tag. How to do this? Thanks in advance.
Ya. I already seen that code. But I want to display it in HTML img tag. How to do this? Thanks in advance.
Ads