amesdaq
asked on
How to use Perl and SOAP to transfer files
I would like to write a SOAP client and server to send and to receive files. The files will mostly be exe, zip, and various image files. Whats the best way to accomplish this in perl? I have been reading some stuff on the net and some suggest using MIME some suggest other methods. I just want someone with experience doing this to give me their feedback.
ASKER
Actually I figured it out already. Much easier way
my $data;
my $fh;
my $filename = $ARGV[1];
open ($fh, "$filename");
binmode($fh);
while (<$fh>)
{
$data.=$_;
}
close $fh;
my $som = $client->file($filename, $data);
my $data;
my $fh;
my $filename = $ARGV[1];
open ($fh, "$filename");
binmode($fh);
while (<$fh>)
{
$data.=$_;
}
close $fh;
my $som = $client->file($filename, $data);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Look at here..
http://www.perl.com/pub/a/2004/09/30/drop_the_soap.html
R.K