camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From larsa <lars.anders...@jayway.com>
Subject Why is FileInputStreamCache used when fetching image (.jpg)
Date Fri, 21 May 2010 12:25:28 GMT

Hi,

I'm using the http component (camel 2.2.0) to fetch images and most of the
time it works well
and I can get the body as a ByteArrayInpustream but sometimes it's a
FileInputStreamCache.

Does anybody know why the FileInputStreamCache is used in some cases? 

If I only work with the InputStream I get a
 
"java.lang.IllegalArgumentException: Numbers of source Raster bands and
source color space components do not match"

when trying to create a BufferedImage bImage = ImageIO.read(inputStream); 
if it is a FileInputStreamCache.

Regards Lars
-- 
View this message in context: http://old.nabble.com/Why-is-FileInputStreamCache-used-when-fetching-image-%28.jpg%29-tp28633127p28633127.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message