users@jersey.java.net

[Jersey] Re: com.sun.jersey.api.MessageException ?

From: Srinivas Naresh Bhimisetty <shri.naresh_at_gmail.com>
Date: Thu, 23 Jun 2011 15:13:26 +0530

Oh... can u try this:

*return
Response.status(Response.Status.OK).type("image/jpeg").entity(is).build();*
*
*
- Naresh

On Thu, Jun 23, 2011 at 2:31 PM, susmitha <susmitha.shali_at_tcs.com> wrote:

> I am getting error in code at line.
>
>
> return Response.ResponseBuilder.type("image/jpeg").entity(is).build();
>
> and the error is:
>
> Cannot make a static reference to the non-static method type(String) from
> the type Response.ResponseBuilder.
>
>
>
>
>
> --
> View this message in context:
> http://jersey.576304.n2.nabble.com/com-sun-jersey-api-MessageException-tp6507380p6507648.html
> Sent from the Jersey mailing list archive at Nabble.com.
>