how to store a picture in a database? RRS feed

  • Question

  • I have a website that I making for a project. The languages used are HTML,PHP and MySQL. I need to store pictures in the database so that when they are called with a SQL query, they show up on the web page. I searched the internet and found that the data type is LONGBLOB. That’s what I have in the database… so far what I have seen, I am suppose to store the web location of the pictures and it should show when I call but this is not happening, the web address shows but not the picture… any help??? Please let me know if you require any other information.

    Tuesday, June 29, 2010 3:47 PM


All replies