Link to home
Start Free TrialLog in
Avatar of amesdaq
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.
Avatar of rama_krishna580
rama_krishna580
Flag of United States of America image

Avatar of amesdaq
amesdaq

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);
ASKER CERTIFIED SOLUTION
Avatar of DarthMod
DarthMod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial