Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Image Magick using Net FTP

by giulienk (Curate)
on May 22, 2002 at 16:50 UTC ( #168513=note: print w/ replies, xml ) Need Help??


in reply to Image Magick using Net FTP

I try a solution: untested code ahead.

use IO::File; my $fh = IO::File->new_tmpfile; $image->Write(file => $fh); seek($fh, 0, 0); $ftpSession->put($fh, $filename);
The temporary file will be erased as you close it. It's in someway as it never existed and it's just useful to pass a filehandle to the Net::FTP put method instead of a scalar (that the method doesn't accept).


$|=$_="1g2i1u1l2i4e2n0k",map{print"\7",chop;select$,,$,,$,,$_/7}m{..}g


Comment on Re: Image Magick using Net FTP
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-07-31 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls