Hi

Have you resource method returning the implementation of

https://jax-rs-spec.java.net/nonav/2.0/apidocs/javax/ws/rs/core/StreamingOutput.html

CXF 3.0.0 (released in the next couple of weeks) has introduced

https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/StreamingResponse.java,

a typed analog of StreamingOutput, I will document it shortly

But using StreamingOutout for returning the file should work perfectly well

Cheers, Sergey



On 17/04/14 18:16, mauro2java2011 wrote:
Hi all. i would get a image from a db .
I get the bytes[] of image and the content.type saved into db with  JPA  .
But next how i can stream into the Response for show into a web page ?

  i have found example for save the file with saveas ...

But i would stream the bytes , not save the file on client .

Please some code or link of tutorial?
tank you
mauro




--
View this message in context: 
http://cxf.547215.n5.nabble.com/how-get-a-image-from-db-with-rest-cxf-tp5743013.html
Sent from the cxf-user mailing list archive at Nabble.com.



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to