commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yannick PIERSON" <piers...@gmail.com>
Subject [common VFS] zip_file InputStream
Date Mon, 09 Jun 2008 13:32:25 GMT
Hi,

I get an another problem with vfs-common library. I'm not able to get an
InputStream for zip files.

This is my code:
FileObject zipFile = vfsJFileChooser.getSelectedFile();
InputStream is = zipFile.getContent().getInputStream();

This is my error:
Could not read file "smb://user:pwd@host.domain:port/MyZipFile.zip".

But I'm able to check that this file exists with zipFile.exists() method.

For others type of file I'm able to get the inputStream.
Do you know what's wrong in my code?

Thanks.

Regards,

Yannick

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message