D
D
Den4_x2021-01-24 02:05:57
Java
Den4_x, 2021-01-24 02:05:57

How to read and unpack Rar/Zip file?

there is a rar / zip file that contains more rar / zip files, how to unpack this whole thing at the program level?

Junrar - no longer relevant, because it does not work with new versions of zip, but

I tried the default Java library, however, also unsuccessfully, it just gives the most mysterious error that I have ever seen, namely,

zip END header not found


I hope for your support, thank you)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Miron, 2021-01-24
@Miron11

Default should work. The absence of a "header" almost certainly means that the file was processed not by a utility, but by code. Utilities necessarily create a header entry.
Perhaps you need to delve into the documentation of the default library, how to process a stream, not an archive. At least for zip files. Rar may have other requirements.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question