Share Share Tweet Email. Related Topics Answers. MakeUseOf Articles Published. Subscribe to our newsletter Join our newsletter for tech tips, reviews, free ebooks, and exclusive deals! Click here to subscribe.
Edit: per comment, adding the suggestions from the linked summary page. One may be outdated as of They offer two solutions:. In general principle, this isn't possible. To view something, you have to download at least part of it. However, you may be able to download the header of the archive for particular formats and read that. If it contains a list of filenames and sizes, that should give you enough information to "view the content" before downloading the entire file.
Most formats have a header segment with a known length or recorded in the first few bytes of the file , so grabbing the first 8 bytes 4 for the type and 4 for the header length, let's say , then the rest of the header based on the length may be viable. It seems a bit awkward though. In the case of a non-solid archive, you could also request a particular chunk corresponding to a file from the server, but I'm not sure how you'd go about decompressing it.
For ZIP archive this is not possible, since information about files, stored in archive is located at the end of archive central directory and before each compressed file, i. So, you can only see information about first file in archive, and to see all further info you need to download data. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Mark O'Neill Normally you can just double-click the file and it will open to reveal the files unless the file is password-protected.
Aibek Hey Mark,. Aibek Farhad,. We have review a couple of tools that can let you preview the contents of the archive files prior downloading them.
Which Raspberry Pi project should you start with? Here's our roundup of the best Raspberry Pi uses and projects around! How can I view the content of. There are many tools which work with RAR archives.
0コメント