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.
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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
So please help me out so that, I have the Text box and the button and then the image beneth
Thanks
NT