tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: how stream a image from a web service apache cxf ?
Date Thu, 10 Apr 2014 08:18:42 GMT
then it depends, personally i was generating it on the fly through
ImageIO but since you have an outputstream you just basically copy the
stream of the image.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-04-10 10:15 GMT+02:00 mauro2java2011 <mauro2java2011@gmail.com>:
> Ok but into method write (OutputStream output)  i have to pass a
> ByteArrayOutputStream if i get a byte[] for example from a entity jpa saved
> into db ?
>
> And if i get the image from a file saved into a dir on server i have to pass
> a FileOutputStream?
>
>
>
>
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/how-stream-a-image-from-a-web-service-apache-cxf-tp4668691p4668694.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message