in reply to inputting an image into mysql with DBI

Putting an image into MySQL through DBI can be done, however, depending on where this is hosted, you may find you aren't allowed to do it. Certainly on my web provider (pair Networks) there is an explicit notice telling users not to insert graphic data into databases -- I've just spent a couple of minutes trying to find the exact page on their site but to no avail.

One alternative would be to store the file name of the graphic, and write a module to provide methods to get and set a graphic. That way you can change whatever method you use 'under the covers' and let the rest of your application do whatever it does.

Update Found the link I was looking for. Read this for the limitations on pair Networks.

--t. alex

"Here's the chocolates, and here's the flowers. Now how 'bout it, widder hen, will ya marry me?" --Foghorn Leghorn

  • Comment on Re: inputting an image into mysql with DBI