Hi,
I'm trying to create a REST web service that returns an image. Is there an
easy way to do that?
I already hava REST web services that return json:
my xml file:
<jaxrs:server id="restServices" address="/">
<jaxrs:serviceBeans>
<ref bean="serviceImpl" />
</jaxrs:serviceBeans>
<jaxrs:extensionMappings>
<entry key="json" value="application/json" />
</jaxrs:extensionMappings>
</jaxrs:server>
and in my class:
@Produces("application/json" )
public class ServiceImpl {
@GET
@Path("/getCategories")
public Categories getCategories() {
...
}
}
Is there a way to have any web service that returns an image instead of
json?
Regards,
Tugdual
--
View this message in context:
http://www.nabble.com/RESTFUL-Web-service-returning-Image-tp24293230p24293230.html
Sent from the cxf-user mailing list archive at Nabble.com.