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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.