Skip to main content

[JAI-IMAGEIO] ImageInputStream and File

2 replies [Last post]
Anonymous

Hi all,

I have a method which takes an ImageInputStream as parameter. I have looking
for if there is a method which ,from the ImageInputStream , can return back
the File where the data are, but I haven't found it. There is someone that
can help me?

tanks and regards

--
Daniele Andreis
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
marcojacob
Offline
Joined: 2006-07-10

ImageInputStream hides the wrapped input resource. Maybe you can try
getClass().geName() to find out if the implementation differs (I don't never
tried this).

However you could yourself write a wrapper class for ImageInputStream
that delegates all methods and implements a reference to file.

Kind regards,
Marco

Simone Giannecchini

see

https://imageio-ext.dev.java.net/source/browse/imageio-ext/trunk/library...
https://imageio-ext.dev.java.net/source/browse/imageio-ext/trunk/library...

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------

On Wed, Apr 15, 2009 at 9:30 AM, wrote:
> ImageInputStream hides the wrapped input resource. Maybe you can try
> getClass().geName() to find out if the implementation differs (I don't never
> tried this).
>
> However you could yourself write a wrapper class for ImageInputStream
> that delegates all methods and implements a reference to file.
>
> Kind regards,
>  Marco
> [Message sent by forum member 'marcojacob' (marcojacob)]
>
> http://forums.java.net/jive/thread.jspa?messageID=342216
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net