Reputation: 10971
I make a soap request in my Android app using HttpURLConnection
the response is a base64 encoded string 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
Upvotes: 0
Views: 381
Reputation: 12823
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.
Upvotes: 2
Reputation: 80340
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.
Upvotes: 0