users@jersey.java.net

[Jersey] Image As a Jersey Response

From: selvakumar netaji <vvekselva.gm_at_gmail.com>
Date: Wed, 30 Jan 2013 19:23:58 +0530

Hi All,

I've designed a rest service to upload a image of various formats. The
service loads the image into the database..

This works fine but the get service which retrieves the image creates the
problem for me. I have annotated the get service as
@Produces("image/png"), which works fine for png images stored in the
database, If i annotate as @Produces("image/*") its not working for any
of the images. Can you guide me to handle the situation to support all the
images.