Ticket #608 (closed defect: fixed)
Opened 2010-11-29T19:30:03-06:00
Last modified 2010-12-24T14:50:16-06:00
Zip file URLs are not supported
Reported by: | melissa | Owned by: | melissa |
---|---|---|---|
Priority: | major | Milestone: |
|
Component: | bio-formats | Severity: | serious |
Keywords: | Cc: | acardona@…, curtis | |
Blocked By: | Blocking: |
Description
For example:
showinf http://imagej.nih.gov/ij/images/flybrain.zip
produces this lovely exception:
Exception in thread "main" java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:114) at java.util.zip.ZipFile.<init>(ZipFile.java:75) at loci.formats.in.ZipReader.initFile(ZipReader.java:103) at loci.formats.FormatReader.setId(FormatReader.java:1058) at loci.formats.ImageReader.setId(ImageReader.java:650) at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:480) at loci.formats.tools.ImageInfo.testRead(ImageInfo.java:919) at loci.formats.tools.ImageInfo.main(ImageInfo.java:948)
It should be sufficient to use java.util.zip.ZipInputStream instead of java.util.zip.ZipFile within ZipReader and ZipHandle.
Change History
comment:1 Changed 2010-12-24T14:50:16-06:00 by melissa
- Status changed from new to closed
- Resolution set to fixed
(In [7460]) Updated ZipHandle and ZipReader to use a ZipInputStream instead of a ZipFile. Closes #608.