how to get an image in jersey rest web service
<p>My listBo class</p>

<p>public class ListBO {</p>

<pre><code>public String itemName = "";

public String itemType = "";

public String itemImg = "";

public String itemPrice = "";

public int itemId;

    /**
     * @return the itemName
     */

public String getItemName() {

return itemName;

}
    /**
     * @param itemName the itemName to set
     */

public void setItemName(String itemName) {

this.itemName = itemName;

}
    /**
     * @return the itemType
     */

public String getItemType() {

return itemType;

}
    /**
     * @param itemType the itemType to set
     */

public void setItemType(String itemType) {

this.itemType = itemType;

}
    /**
     * @return the itemImg
     */

public String getItemImg() {

return itemImg;

}
    /**
     * @param itemImg the itemImg to set
     */

public void setItemImg(String itemImg) {

this.itemImg = itemImg;

}

public void setItemId(int itemId) {

this.itemId = itemId;

}

public String getItemPrice(){

return itemPrice;


}

public void setItemPrice(String itemPrice) {

this.itemPrice = itemPrice;

}

My listjson class

@Path("/listItems")

public class ListJson {         


@Path("/lists")

@POST

@Produces(MediaType.APPLICATION_JSON)

public List&lt;ListBO&gt; getList(){

System.out.println("Called Main JSON");

List&lt;ListBO&gt; lists = new ArrayList&lt;ListBO&gt;();


for (int i = 0; i &lt; 10; i++) {


ListBO items = new ListBO();


items.setItemId(i);


items.setItemName("Chicken :"+i);


items.setItemType("Type :"+i);


items.setItemPrice("Price :"+i);


if(i&lt;=10){


items.setItemPrice("20");


}


lists.add(items);           



}


return lists;
</code></pre>

<p>}</p>

<p>i can add image like this but it doesnot return an image please helpme..</p>

<p>/*@Path("/image") class ImageService {</p>

<p>private static final String FILE_PATH = "c:\images.jpg";</p>

<p>@GET</p>

<p>@Path("/get")</p>

<p>@Produces("image/jpg")</p>

<p>public Response getFile() {</p>

<p>File file = new File(FILE_PATH);</p>

<p>ResponseBuilder response = Response.ok((Object) file);</p>

<p>response.header("Content-Disposition",</p>

<p>"attachment; filename=image_from_server.jpg");</p>

<p>return response.build();</p>

<p>}</p>

<p>}   */</p>

<p>}</p>

<p>how to return an image and where can i store an image give me an example..</p>
