Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: About getting Image from Web

by Your Mother (Archbishop)
on Sep 13, 2015 at 16:28 UTC ( [id://1141841]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1141841]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-24 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found