JAVA display image BLOB from MySQL

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

Do more with

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

ref: https://www.java.com/en/download/faq/chrome.xml

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

Commented:
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