release 2.3.0 XPathBuilder.xpath evaluate gives different result

2010-05-28 Thread larsa
Hi In release 2.3.0 given the following XML "cheese" XPathBuilder.xpath("foo/bar").evaluate(exchange, String.class); returns "cheese" See test below. Is this the correct behavior or a bug? Regards Lars In Camel 2.2.0 the following test is true public void testXpath(){

Re: Why is FileInputStreamCache used when fetching image (.jpg)

2010-05-21 Thread larsa
gt;> >> http://camel.apache.org/stream-caching.html >> >> On Fri, May 21, 2010 at 8:25 AM, larsa wrote: >>> Hi, >>> >>> I'm using the http component (camel 2.2.0) to fetch images and most of >>> the >>> time it works well >&

Why is FileInputStreamCache used when fetching image (.jpg)

2010-05-21 Thread larsa
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