Skip to content

Commit

Permalink
fix(android): HTTPClient "responseData" blob returns 0 width/height f…
Browse files Browse the repository at this point in the history
…or images over 512kb (#10964)

Fixes TIMOB-27108
  • Loading branch information
jquick-axway authored and sgtcoolguy committed Sep 9, 2019
1 parent 69dfda5 commit 722d6bc
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -382,6 +382,9 @@ private void finishedReceivingEntityData(long contentLength) throws IOException
if (fileDescriptor != null) {
fileDescriptor.sync();
}
if (responseData != null) {
responseData.loadBitmapInfo();
}
}
responseOut.close();
responseOut = null;
Expand Down Expand Up @@ -621,7 +624,7 @@ public TiBlob getResponseData()
TiBlob blob = this.responseData;
if (blob == null) {
if (this.responseOut instanceof ByteArrayOutputStream) {
blob = TiBlob.blobFromData(((ByteArrayOutputStream) this.responseOut).toByteArray());
blob = TiBlob.blobFromData(((ByteArrayOutputStream) this.responseOut).toByteArray(), this.contentType);
} else if (this.responseText != null) {
blob = TiBlob.blobFromString(this.responseText);
}
Expand Down

0 comments on commit 722d6bc

Please sign in to comment.