Link to home
Start Free TrialLog in
Avatar of oto27
oto27

asked on

loading image from a database

I have pictures in bmp format stored in MS SQL Server database as an image type field.

How can I display these images in a JSP file?

I know the solution to store the path of the file instead the actual file into the database, but I don't want to do this.
Avatar of allahabad
allahabad

You can display image in JSP. Content type for JSP is "text/html". To display binary data, you can use Servlet.
Oops,
You can not display image in JSP. Content type for JSP is "text/html". To display binary data, you can use Servlet.
ASKER CERTIFIED SOLUTION
Avatar of allahabad
allahabad

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have a question continued with this. I have a text box and Submit button. I get a dynamic image when i make a choice and click the button. The image is is Binary and when the image gets displayed I lose the textbox and the Submit button for the new request.
So please help me out so that, I have the Text box and the button and then the image beneth

Thanks
NT