We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e4610a + a072a1a commit acfb2f0Copy full SHA for acfb2f0
android/src/main/java/com/ReactNativeBlobUtil/Response/ReactNativeBlobUtilFileResp.java
@@ -72,6 +72,10 @@ public MediaType contentType() {
72
73
@Override
74
public long contentLength() {
75
+ if (originalBody.contentLength() > Integer.MAX_VALUE) {
76
+ // This is a workaround for a bug Okio buffer where it can't handle larger than int.
77
+ return Integer.MAX_VALUE;
78
+ }
79
return originalBody.contentLength();
80
}
81
0 commit comments