Browse Source

Merge branch 'master' into 0.9.2

Ben Hsieh 8 years ago
parent
commit
d8a6ea3cdf
2 changed files with 8 additions and 3 deletions
  1. 2
    2
      README.md
  2. 6
    1
      src/android/src/main/java/com/RNFetchBlob/RNFetchBlobBody.java

+ 2
- 2
README.md View File

38
 
38
 
39
 ## About
39
 ## About
40
 
40
 
41
-This project was initially for solving the issue [facebook/react-native#854](https://github.com/facebook/react-native/issues/854), because React Native lack of `Blob` implementation and it will cause some problem when transfering binary data. Now, this project is committed to make file access and transfer more easier, efficient for React Native developers. We've implemented highly customizable filesystem and network module which plays well together. For example, upload and download data directly from/to storage which is much more efficient in some cases(especially for large ones). The file system supports file stream, so you don't have to worry about OOM problem when accessing large files.
41
+This project was initially for solving the issue [facebook/react-native#854](https://github.com/facebook/react-native/issues/854), because React Native lack of `Blob` implementation and it will cause some problem when transferring binary data. Now, this project is committed to make file access and transfer more easier, efficient for React Native developers. We've implemented highly customizable filesystem and network module which plays well together. For example, upload and download data directly from/to storage which is much more efficient in some cases(especially for large ones). The file system supports file stream, so you don't have to worry about OOM problem when accessing large files.
42
 
42
 
43
-In `0.8.0` we introduced experimential Web API polyfills that make it possible to use browser-based libraries in React Native, for example, [FireBase JS SDK](https://github.com/wkh237/rn-firebase-storage-upload-sample)
43
+In `0.8.0` we introduced experimental Web API polyfills that make it possible to use browser-based libraries in React Native, such as, [FireBase JS SDK](https://github.com/wkh237/rn-firebase-storage-upload-sample)
44
 
44
 
45
 
45
 
46
 ## Installation
46
 ## Installation

+ 6
- 1
src/android/src/main/java/com/RNFetchBlob/RNFetchBlobBody.java View File

102
     public MediaType contentType() {
102
     public MediaType contentType() {
103
         return mime;
103
         return mime;
104
     }
104
     }
105
-
105
+    
106
+    @Override
107
+    public long contentLength() {
108
+        return contentLength;
109
+    }
110
+    
106
     @Override
111
     @Override
107
     public void writeTo(BufferedSink sink) {
112
     public void writeTo(BufferedSink sink) {
108
         try {
113
         try {