JAVA display image BLOB from MySQL

spectrumsofttech used Ask the Experts™
Will not display the image that retrieved from DB (as blob)  in Chrome ? But working fine with Firefox.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Technology Scientist
If you are attempting to display via an applet,
Chrome no longer supports NPAPI (technology required for Java applets)


If you are outputting an image via src e.g. <img src="/imagejsp.jsp" /> then you want to make sure the MIME headers are correct. For example:
Content-Type: image/png

Open in new window

Post your code here?
NerdsOfTechTechnology Scientist

The correct MIME type should fix the issue.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial