camel-users mailing list archives

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


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

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 =; 
if it is a FileInputStreamCache.

Regards Lars
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message