Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Unable to Extract the Zip file

by FloydATC (Deacon)
on Dec 29, 2015 at 09:28 UTC ( [id://1151324]=note: print w/replies, xml ) Need Help??


in reply to Unable to Extract the Zip file

As far as I can tell, your code should work as expected.

I would first double-check that AUS-000X-201512 28234755_Data.zip is in fact a valid Zip archive and not some other compressed format which is transparently recognized and handled by whatever tool you are using when manually opening it. The quickest way to check is to open the file in a text editor and check the first two bytes. They will usually read "PK", followed by unreadable characters. (See https://en.wikipedia.org/wiki/Zip_%28file_format%29)

If the file is indeed a Zip archive, my guess is that your Archive::Zip module or one of its dependencies needs an update.

-- FloydATC

Time flies when you don't know what you're doing

Replies are listed 'Best First'.
Re^2: Unable to Extract the Zip file
by senthil_v (Sexton) on Dec 29, 2015 at 09:51 UTC

    Thanks Floyd. i had opened the zip file in editor and could see that 'PK' character is being appeared at the first line followed by unreadble character. really, i am wondering that why it is not able to exrtact the content.

    Thanks,

    Senthil

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-23 09:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found