Re: Requesting binary files (images etc)



On 12/05/2009 05:44 AM, Pontus Östlund wrote:
> When trying to download binary data the response body is scrambled - or truncted. The Content-Length header is correct though.

> Am I doing something wrong? Have I missed some flags or something that's needed? Or is this a Vala implementation problem? Or am I just a lamer? 

It looks like a Vala problem; SoupBuffer.data and SoupMessageBody.data
have type "const char *", so Vala is probably assuming they're UTF8
strings. But they're not. It needs to treat them as though they were
guchar instead.

-- Dan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]