Thank you for this.My goal is to store Image from URI to Binary data, and insert into MySql.
| [reply] |
Then you've already got it in your original post. :P The LWP::Simple::get() will get the image, you just have to put it into a DB. DBI is what you want; and also to check the manual for mysql to ensure you are using a binary/plain column and not a character encoded column. NB: many, maybe most, developers will tell you storing images in a relational DB is a mistake. File systems are a much better match for access, checking, performance, etc. Devs often store file locations in the DB with meta/relation information of images.
| [reply] [d/l] |