Skip to main content

About the BLOB datatype in MySQL



I have stored an image in MySQL using the BLOB datatype. I am able to retrieve image through JSP but when I use Chrome or Firefox browser I am unable to view the image. It is displaying in an encrypted format. Can anyone please help me?




Comments

  1. Open up Chrome inspector [ ctrl+shift+i ]
    go to the network tab
    clear out the entries
    goto your url
    check the MIME Type in the type column.


    This will make sure that your application / server config is sending it as the correct MIME type.

    ReplyDelete

Post a Comment

Popular posts from this blog

Wildcards in a hosts file

I want to setup my local development machine so that any requests for *.local are redirected to localhost . The idea is that as I develop multiple sites, I can just add vhosts to Apache called site1.local , site2.local etc, and have them all resolve to localhost , while Apache serves a different site accordingly.