Hello,

How are you sending the binary content?  Via a bytes array,
InputStream, or other type?  Generally, you will probably have to set
the Content-Length for the response since we can't pre-determine it.
For instance, if you returned an InputStream, we wouldn't be able to
identify how many bytes are in that InputStream unless we buffered the
entire output, determined the size, set the header, and then sent the
content.  That would be very inefficient.

On Mon, Jan 24, 2011 at 11:48 AM, shinoj_kk <[email protected]> wrote:
>
> Hi,
>
> I am setting the binary content to the response object, but the
> Content-Length response header is not coming in the response.
>
> Is the wink will automatically set the Content-Length based on the length of
> the response body or We have to manually set in the respective service.
> Please help me on this issue.
>
> Thanks in advance,
> Shinoj
> --
> View this message in context: 
> http://apache-wink-dev.3470905.n2.nabble.com/Content-Length-Response-header-is-not-displayed-for-Response-in-Rest-Client-tp5955971p5955971.html
> Sent from the Apache Wink Dev mailing list archive at Nabble.com.
>

Reply via email to