How can I read from .tar.zip without unzipping it? Part II

1 Ansicht (letzte 30 Tage)
Sam Da
Sam Da am 14 Feb. 2011
Okay, I will try to create the zip instead. So, my zip will contain 1.mat, 2.mat ,etc. How do I read these .mat files from the zip without unzipping?
  1 Kommentar
Oleg Komarov
Oleg Komarov am 14 Feb. 2011
I tried to give a look at unzip.m, too complicated. You should modify several routines with java knowledge...I can't be of any help.
Lets say that you can unzip, load and delete afterwards...would much easier to write but less efficient.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 14 Feb. 2011
My understand (possibly incorrect) is that at the Java level there is a method to unzip from an already-positioned input stream. Each zip archive component has a header saying how long it is, thus allowing you to fseek() to where the next archive header would start.

Weitere Antworten (0)

Kategorien

Mehr zu App Building finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by