Hello all,
Want to read the contents from a .csv file which is in a remote zip file without downloading & extracting the zip file to local machine.
I need this because the file zip file size is too large and downloading it whenever needed takes longer time.
I am trying this in perl.
My code is : my $ftp = Net::FTP::AutoReconnect->new("ftp.somename.com"); $ftp->login("user","password"); $ftp->cwd("path");
my $fh = Net::FTP::RetrHandle->new($ftp,"filename.zip");
my $zip = Archive::Zip->new($fh);
my @member_names = $zip->memberNames();
my $member1 = $zip->memberNamed("Basic/BoardDescriptions.csv");
my $string = $member1->contents();
print Dumper $string;
I get io::seeking to local header error while calling contents method, till that statement i guess the code is working fine.
Thanks in advance to any one who gives a try to it. Thanks.