This content has been marked as final.
Show 3 replies
-
1. Re: Returning image and setting http headers
scottdawson Dec 10, 2008 10:46 PM (in response to sshetty)Try this:
message.getProperties().setProperty("Content-Type", new ResponseHeader("Content-Type", "image/jpeg"));
See here for more info: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=130661
Regards,
Scott -
2. Re: Returning image and setting http headers
sshetty Dec 11, 2008 5:45 PM (in response to sshetty)Thanks Scott,
That fixed the Content-Type issue.
I am still unable to send back binary data from the esb. Is that possible with the jbr-provider?
Thanks
:)
SShetty -
3. Re: Returning image and setting http headers
kconner Dec 12, 2008 5:12 AM (in response to sshetty)Have you tried setting the payload as a byte[]?
The payload is returned to JBoss Remoting 'as is' and it looks like the marshaller should write the contents of the byte[] directly to the output stream.