Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PERL : save JPEG images

Status
Not open for further replies.

defdefdef

Technical User
Jul 4, 2005
19
0
0
FR
Hi,

I have a database (mysql) table of this type :

------------------------------------------------
code ## product ## URL_of_the_product_image
------------------------------------------------
ex : 124544 ## pen ## ------------------------------------------------

With PERL, what's the easiest way (module ?) to save each image of the table (row by row) in a directory and rename them code.JPG ??

Thanks.
Best Regards
 
I'd suggest using dbi, and save using a normal filehandle.

Make sure that if you are using windows, taht you use "binmode".

Gimme a shout if you dunno how to dbi to your dbs.



[ponder]KrK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top