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

To elaborate just a bit–

getstore($url, $file); # and preferable in some cases– mirror($url, $file);

Replies are listed 'Best First'.
Re^3: About getting Image from Web
by scolife (Novice) on Sep 14, 2015 at 08:28 UTC
    Thank you for this.My goal is to store Image from URI to Binary data, and insert into MySql.

      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.