You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Yannick PIERSON <pi...@gmail.com> on 2008/06/09 15:32:25 UTC

[common VFS] zip_file InputStream

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

Re: [common VFS] zip_file InputStream

Posted by Yannick PIERSON <pi...@gmail.com>.
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 <pi...@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
>