Jump to content











Photo
- - - - -

re7zip

udf iso remote http 7zip

  • Please log in to reply
60 replies to this topic

#1 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10441 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 24 July 2012 - 02:16 PM

*
POPULAR

Posted Image

File Name: re7zip
File Submitter: Nuno Brito
File Submitted: 24 Jul 2012
File Updated: 09 May 2017
File Category: Tools

This tools allows to extract files directly from an archive hosted at a remote HTTP server.

Underneath the hood we use 7-Zip-JBinding library (based on 7-zip) to extract files. This tool was made with the purpose of (for example) extracting a file from a big ISO files somewhere on the Internet without need to download the whole ISO file.

All the archives supported by 7-zip are supported by this tool, this includes:

zip, tar, split, rar, lzma, iso, hfs, gzip, cpio, bzip2, 7z, z, arj, cab, lzh, chm, nsis, deb, rpm, udf, wim, xar


Here is the syntax and examples:
Usage:    java -jar re7zip.jar [OPTIONS]

Options:
		  /t  -t    archive filetype:
					  zip, tar, split, rar, lzma, iso, hfs, gzip, cpio, bzip2,
					  7z, z, arj, cab, lzh, chm, nsis, deb, rpm, udf, wim, xar,
		  /a  -a    archive filename or URL location of archive
		  /e  -e    filename to extract out of the archive
		  /l  -l    list content of archive
		  /o  -o    output filename for the extracted file
		  /v  -v    show version info

Example:
		  java -jar re7zip.jar /t=iso
				       /a=http://test.com/test.iso
				       /e=some\file.txt
				       /o=file.txt

		  java -jar re7zip.jar /t=iso
				       /a=http://test.com/test.iso
				       /l

		  java -jar re7zip.jar -t=iso
				       -a=http://test.com/test.iso
				       -e=some/file.txt
				       -o=file.txt

		  java -jar re7zip.jar -t=iso
				       -a=http://test.com/test.iso
				       -l
The tool will run on 32-bit (x86) and 64-bit (x64) version of Windows, MacOS and Linux.

Just to clarify, re7zip does not need administrative permissions and does not need to be installed. It is a single file, just run and have fun!

Source code

The source code can be found at: https://github.com/ghuls/re7zip


Credits

Big thanks to Peter Schlang and IceCube for helping so much in making the most recent version possible.



Licensing
This tool is licensed under the LGPL license.


Discussion
http://reboot.pro/topic/17283-re7zip/

Click here to download this file
  • TheHive, ilkertezcan and Blackcrack like this

#2 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4135 posts

Posted 25 July 2012 - 06:59 AM

our own alternative to the other one. the name escapes me. :good:

#3 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 25 July 2012 - 01:46 PM

The idea is :1st:

Unfortunatelly the implementation is not yet perfect.

The command

re7zip.exe /x=Udf /s=http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65732/X15-65732.iso /f=sourceboot.wim /t=boot.wim

brings an error:
Spoiler


I did not install re7zip.exe to Temp. It is in C:Scratchre7zip

Your example command line brings the same error.

Peter

#4 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 25 July 2012 - 03:57 PM

This tools allows to extract files directly from an archive hosted at a remote HTTP server.

Just for the record, such a tool was already there for ISO files.

#5 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 25 July 2012 - 07:52 PM

And a decent download manager can also handle containers.

Though my biggest problem with re7zip is, that it is a JAVA program.

:cheers:

#6 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 25 July 2012 - 08:27 PM

And a decent download manager can also handle containers.

What containers are you talking about?

#7 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 26 July 2012 - 11:35 AM

Archives for instance. iso would be another container.
Container formats are files which contain other files. Mostly for convenience, sometimes to save space.
avi and mkv are other container formats, though i doubt that any dl manager will open them. ;)

:cheers:

#8 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 26 July 2012 - 02:34 PM

Archives for instance. iso would be another container.
Container formats are files which contain other files. Mostly for convenience, sometimes to save space.
avi and mkv are other container formats, though i doubt that any dl manager will open them. ;)

:cheers:

Which download manager can handle containers?

Does .avi contain other files?

#9 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 26 July 2012 - 07:54 PM

avi files contain a video and 1 or 2 audio files.

Many download manager such as ReGet, Mass Downloader, Internet Download Accelerator (IDA), Internet Download Manager (IDM), Download Accelerator Plus (DAP) and HiDownload do this.

Mass Downloader was the first to support preview of containers. Or at least the first i knew to have this feature, though only zip at the time. I later switched to HiDownload which could handle more things.

No idea what the status quo is right now. I haven't used a download manager in years.

:cheers:

#10 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10441 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 15 August 2012 - 02:11 PM

The idea is :1st:

Unfortunatelly the implementation is not yet perfect.
...

Peter

Hi Peter, try from the command line without any syntax. It should download the file from the example by default. I have tried on a different machine and worked as intended.

Just for the record, such a tool was already there for ISO files.

This tool requires no install/admin privileges, runs on Windows/Linux/OSX and extracts from all kind of archives.

And a decent download manager can also handle containers.

Though my biggest problem with re7zip is, that it is a JAVA program.

:cheers:

Well, I can't change your opinion about Java my friend. For me it is a good way to provide a multiplatform tool.

Hope everyone is a enjoying a nice August!
:cheers:

#11 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 15 August 2012 - 02:14 PM

Hope everyone is a enjoying a nice August!
:cheers:

Of course, I am. Today is 15th August. :)
  • Nuno Brito likes this

#12 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 15 August 2012 - 02:43 PM

Hi Peter, try from the command line without any syntax. It should download the file from the example by default. I have tried on a different machine and worked as intended.

Sorry, that brings the same error. Just to compare, here the log:
Spoiler

Maybe it has to do with some port rights on my router?

Try to copy the re7zip files to C:scratchre7zip directory, like I have.

Peter

#13 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1062 posts
  •  
    Belgium

Posted 16 August 2012 - 12:22 PM

At least on Linux, the provided sample code doesn't work.
The /f switch needs forward slashes instead of backward slashes:
java -jar re7zip.exe /x=Udf /s=http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65805/X15-65805.iso /f=boot/fonts/chs_boot.ttf /t=chs_boot.ttf
When running it without parameters:
$ java -jar re7zip.exe

Openning HTTP Archive http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65805/X15-65805.iso

Archive is open

Extracting file

Exception in thread "main" net.sf.sevenzipjbinding.SevenZipException: File [boot\fonts\chs_boot.ttf]is not found

	at readsevenzip.HttpIsoReader.getFile(HttpIsoReader.java:71)

	at readsevenzip.HttpIsoReader.main(HttpIsoReader.java:201)

It seems to use hardcoded values. It would be more useful to not have a hardcoded ISO filepath in there, but to be able to show some help text.

A /h (help) would be nice too.
Also when not giving all parameters, the buildin once are used, which is not really useful (e.g. /t switch).
Also adding unsupported switch options (which could be typos when working interactively) don't give an error message.

Support for linux style switch options would be nice too:
java -jar re7zip.exe -x Udf -s http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65805/X15-65805.iso -f boot/fonts/chs_boot.ttf -t chs_boot.ttf


#14 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10441 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 21 August 2012 - 09:55 AM

Hi Peter and IceCube,

Sorry, that brings the same error. Just to compare, here the log:


This is related to the sevenzip libraries, I found a possible solution here: http://stackoverflow...isfiedlinkerror

Will need to add the mentioned files and then retry.

At least on Linux, the provided sample code doesn't work.

Sorry to hear this. I lack the time to provide further improvements on this project, however I can provide the whole project at an open source hosting provider and then perhaps a volunteer can join to help. Chances of finding such volunteer are slim, however one should always keep hope.

#15 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10441 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 16 September 2012 - 05:59 PM

Hello,

I've made available the source code for this application at https://code.google.com/p/re7zip/

If anyone is interested in volunteering to help fixing this tool, just let me know.

:cheers:

#16 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 23 September 2012 - 03:20 PM

I got the source and run NetBeans debugger.

The reason for failure on my system:

sevenzipjbinding-AllPlatforms.jar/Windows-x86 contains the file sevenzipjbinding-AllPlatforms.jar which depends on a couüle of files "API-MS-WIN-???.DLL" which are not present on my XP host. AFAIK they are introduced in win7 sp1.

What I did to run on my system:
  • Replaced sevenzipjbinding-AllPlatforms.jar by sevenzipjbinding-Windows-x86.jar
  • Added to sevenzipjbinding-Windows-x86.jar:
  • libgcc_s_dw2-1.dll
  • libstdc++-6.dll
This modified re7zip project runs successfully on my x86 XP.

Peter

#17 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10441 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 23 September 2012 - 03:30 PM

Hi Peter,

Would you mind committing these changes the SVN repository of the google code page at https://code.google.com/p/re7zip/

This works exactly in the same manner as the SVN for the winbuilder page, I've added you as authorized editor.

Thank you for debugging this issue.

#18 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 23 September 2012 - 03:54 PM

Hi Peter,

Would you mind committing these changes the SVN repository of the google code page at https://code.google.com/p/re7zip/

This works exactly in the same manner as the SVN for the winbuilder page, I've added you as authorized editor.

Thank you for debugging this issue.

I think that such a change would not be a good general fix. It was just a quick and dirty modification to find and proof the root of the issue.

A change of the project according my modification, would remove the ability of other platforms to use re7zip.

I'll look for a general solution.

Peter

#19 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10441 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 23 September 2012 - 04:18 PM

Ok, that is the reason why I don't like using CPU/OS specific files in the first place. I hope a good solution can be found, this would be a nice tool to keep around.

:cheers:

#20 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 23 September 2012 - 05:38 PM

I found a general solution.
When trying to commit, I got an error msg:re7zip svn.gif
No idea what this could be.

Peter

#21 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 26 September 2012 - 09:44 AM

The reason has been:
The SVN server has to be opened with HTPPS, rather than HTTP.

Committed a build where the library sevenzipjbinding-AllPlatforms.jar is replaced by my modified sevenzipjbinding-AllPlatforms-re7zip.jar

@Nuno: Your job to update the download of re7zip.jar!

Peter :cheers:

#22 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1062 posts
  •  
    Belgium

Posted 27 September 2012 - 12:52 AM

I released Version v0.1 on google code:

http://code.google.c.../downloads/list

The switches changed a bit:

Usage: java -jar re7zip.jar [OPTIONS]



Options:

		 /t -t archive filetype:

					 zip, tar, split, rar, lzma, iso, hfs, gzip, cpio, bzip2,

					 7z, z, arj, cab, lzh, chm, nsis, deb, rpm, udf, xar

		 /a -a archive filename or URL location of archive

		 /e -e filename to extract out of the archive

		 /o -o output filename for the extracted file

		 /v -v show version info



Example:

		 java -jar re7zip.jar /t=iso /a=http://test.com/test.iso /e=somefile.txt /o=file.txt



		 java -jar re7zip.jar -t=iso -a=http://test.com/test.iso -e=some/file.txt -o=file.txt

  • Removed hardcoded ISO location and setting.
  • Now it doesn't crash anymore when the file that needs to be extracted doesn't exist in the archive.
  • The slashes in the filename to extract don't need to have the OS specific separators anymore (.
  • Support for Windows and more unix-like switches.
  • FIxed some typo's in the displayed text.
Examples when run from linux:
## Unix-like switches:



# Forward slashes for the filename to extract:

java -jar re7zip.jar -t=udf -a=http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65732/X15-65732.iso -e=boot/fonts/chs_boot.ttf -o=chs_boot.ttf



# Backward slashes (need to be escaped for the shell) for the filename to extract:

java -jar re7zip.jar -t=udf -a=http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65732/X15-65732.iso -e=bootfontschs_boot.ttf -o=chs_boot.ttf



# Backward slashes for the filename to extract, when encapsulation the filename in single quotes:

java -jar re7zip.jar -t=udf -a=http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65732/X15-65732.iso -e='bootfontschs_boot.ttf' -o=chs_boot.ttf







## Windows-like switches:



# Forward slashes for the filename to extract:

java -jar re7zip.jar /t=udf /a=http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65732/X15-65732.iso /e=boot/fonts/chs_boot.ttf /o=chs_boot.ttf



# Backward slashes (need to be escaped for the shell) for the filename to extract:

java -jar re7zip.jar /t=udf /a=http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65732/X15-65732.iso /e=bootfontschs_boot.ttf /o=chs_boot.ttf



# Backward slashes for the filename to extract, when encapsulation the filename in single quotes:

java -jar re7zip.jar /t=udf /a=http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65732/X15-65732.iso /e='bootfontschs_boot.ttf' /o=chs_boot.ttf

Examples when run from Windows:

## Windows-like switches:



# Backward slashes for the filename to extract:

java -jar re7zip.jar /t=udf /a=http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65732/X15-65732.iso /e=bootfontschs_boot.ttf /o=chs_boot.ttf



# Forward slashes for the filename to extract:

java -jar re7zip.jar /t=udf /a=http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65732/X15-65732.iso /e=boot/fonts/chs_boot.ttf /o=chs_boot.ttf







## Unix-like switches:



# Backward slashes for the filename to extract:

java -jar re7zip.jar -t=udf -a=http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65732/X15-65732.iso -e=bootfontschs_boot.ttf -o=chs_boot.ttf



# Forward slashes for the filename to extract:

java -jar re7zip.jar -t=udf -a=http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65732/X15-65732.iso -e=boot/fonts/chs_boot.ttf -o=chs_boot.ttf



#23 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10441 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 27 September 2012 - 03:48 PM

Very nice, thank you for the consistency revision IceCube. Thank you Peter for solving the compatibility issues.

I've added some changes on the google page, uploaded to the downloads portal the most recent version from IceCube and updated the syntax description along with credits to those involved in the project development. Licensing was updated to LGPL.

Version 0.1 was clashing with the first version as 1.0 on the downloads portal, so I made it available as 1.1.

To make Java executable files, I am using Launch4j from http://launch4j.sourceforge.net/

This tool is quite nice, allows the jar file to be launched as exe from command line and open the java download page (or some other page we wish) in case it detects that Java is not available on the machine. Extra points because later the same exe can be used from a linux environment using java -jar myapp.exe

:cheers:

#24 steve6375

steve6375

    Platinum Member

  • Developer
  • 6557 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 09 October 2012 - 09:57 AM

How about a GUI where you copy a download link from a web page to get the URL of the ISO/ZIP/etc. file and then paste it onto a shortcut to this app. The app then pops-up a GUI asking you which particular file you want and then downloads the specified file? Adding this to the right-click menu in Windows would be even better... :dubbio:

#25 The Freezer

The Freezer
  • Members
  • 8 posts
  • Location:NE Ohio
  •  
    United States

Posted 09 October 2012 - 04:31 PM

Tried to do this:

java -jar re7zip.jar /t=7z /a=http://www.lastos.org/team/LastOS/Repository/CCleaner_v3.23_ppApp.7z /e=ppApp.jpg /o=ppApp.jpg


But got this instead:

Invalid File Type : 7Z





Usage: java -jar re7zip.jar [OPTIONS]



Options:

		 /t -t archive filetype:

					 zip, tar, split, rar, lzma, iso, hfs, gzip, cpio, bzip2,

					 7z, z, arj, cab, lzh, chm, nsis, deb, rpm, udf, xar

		 /a -a archive filename or URL location of archive

		 /e -e filename to extract out of the archive

		 /o -o output filename for the extracted file

		 /v -v show version info



Example:

		 java -jar re7zip.jar /t=iso

							 /a=http://test.com/test.iso

							 /e=some\file.txt

							 /o=file.txt



		 java -jar re7zip.jar -t=iso

							 -a=http://test.com/test.iso

							 -e=some/file.txt

							 -o=file.txt


So next tried it with file-type zip (same contents as the 7z one but zip archive format):

java -jar re7zip.jar /t=zip /a=http://www.lastos.org/team/LastOS/Repository/CCleaner_v3.23_ppApp.zip /e=ppApp.jpg /o=ppApp.jpg

But now this is what I'm getting:

Opening HTTP archive 'http://www.lastos.org/team/LastOS/Repository/CCleaner_v3.2

3_ppApp.zip'.

Failed to open archive 'http://www.lastos.org/team/LastOS/Repository/CCleaner_v3

.23_ppApp.zip'.


Hummm. So I'm kind of puzzled as to what I'm doing wrong. Otherwise, this tool is showing great promise. :)
  • Nuno Brito likes this





Also tagged with one or more of these keywords: udf, iso, remote, http, 7zip

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users