in reply to Re^2: About getting Image from Web
in thread About getting Image from Web

Thank you for this.My goal is to store Image from URI to Binary data, and insert into MySql.

Replies are listed 'Best First'.
Re^4: About getting Image from Web
by Your Mother (Archbishop) on Sep 14, 2015 at 12:17 UTC

    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.