tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mauro2java2011 <>
Subject Re: how stream a image from a web service apache cxf ?
Date Thu, 10 Apr 2014 08:41:46 GMT
Supoose  i have a ejb named DAO and a entity named Photo. 
The Photo contains a properties bytes[] immagine .
the  entyty is persisted with jpa into db.
so into my class for rest i can :
@Inject DAO dao;
Photo photo= dao.getPhoto(Long id);
byte by=photo.getImmagine();

and how is it  the code for output stream ???

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message