commons-user mailing list archives

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

I give you more informations about my problem.

In fact, I want to get a zip file on a share windows thanks to smb. But when
I get my FileObject thanks to smb, I cannot get the InputStream of a zip
file. How can I access to this InputStream?

Thanks for your help,

Yannick

2008/6/9 Yannick PIERSON <piersony@gmail.com>:

> 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