Tuesday, February 14, 2012

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?


1 comment:

  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