camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scottdawson <sc.e.daw...@gmail.com>
Subject Re: Corrupt pdf from classpath
Date Thu, 25 Sep 2014 19:14:28 GMT
Hello,
I wrote a component based on the code shown here: 
http://code.notsoclever.cc/writing-camel-component-camel-static-resource/
<http://code.notsoclever.cc/writing-camel-component-camel-static-resource/>  
to deliver static files, mostly PNG files in my case but I see no reason why
it won't work for PDFs.

The first code sample in the article gives everything needed to deliver
static files and it detects the type of the file to set the HTTP
Content-Type header correctly.

Regards,
Scott



--
View this message in context: http://camel.465427.n5.nabble.com/Corrupt-pdf-from-classpath-tp5756921p5757022.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message