<?xml version="1.0" encoding="windows-1252"?>
<node id="168513" title="Re: Image Magick using Net FTP" created="2002-05-22 12:50:57" updated="2005-07-19 14:08:11">
<type id="11">
note</type>
<author id="114167">
giulienk</author>
<data>
<field name="doctext">
I try a solution: untested code ahead.
&lt;code&gt;
use IO::File;
my $fh = IO::File-&gt;new_tmpfile;

$image-&gt;Write(file =&gt; $fh);
seek($fh, 0, 0);
$ftpSession-&gt;put($fh, $filename);
&lt;/code&gt;
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 [kobe://Net::FTP] &lt;tt&gt;put&lt;/tt&gt; method instead of a scalar (that the method doesn't accept).
&lt;P&gt;&lt;BR&gt;&lt;TT&gt;$|=$_="1g2i1u1l2i4e2n0k",map{print"\7",chop;select$,,$,,$,,$_/7}m{..}g&lt;/TT&gt;</field>
<field name="root_node">
168449</field>
<field name="parent_node">
168449</field>
</data>
</node>
