开发者

Android: incomplete soap response?

开发者 https://www.devze.com 2023-02-13 18:37 出处:网络
I make a soap request in my Android app using HttpURLConnection the response is a base64 encoded str开发者_运维问答ing holding the data of an image.

I make a soap request in my Android app using HttpURLConnection the response is a base64 encoded str开发者_运维问答ing holding the data of an image.

the problem is that the response always received in complete. so the image can not be constructed correctly.

what can be the reason for this ?

thanks


A friend of mine blogged about this a year or so ago. Base64 is supposed to be built in, but isn't/wasn't? He has details here.


Possibly server is sending the incorrect Content-Length header.

Did you write the server code?

Happened to me once when I was reporting the content length based on the size of buffer not the actual size of data inside buffer.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号