File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
android/src/main/java/com/RNFetchBlob Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change 2121import com .facebook .react .modules .core .DeviceEventManagerModule ;
2222
2323import java .io .*;
24- import java .nio .ByteBuffer ;
2524import java .nio .charset .Charset ;
26- import java .nio .charset .CharsetEncoder ;
2725import java .security .MessageDigest ;
2826import java .util .ArrayList ;
2927import java .util .HashMap ;
@@ -325,9 +323,7 @@ else if(resolved == null) {
325323 boolean error = false ;
326324
327325 if (encoding .equalsIgnoreCase ("utf8" )) {
328- CharsetEncoder encoder = Charset .forName ("UTF-8" ).newEncoder ();
329326 while ((cursor = fs .read (buffer )) != -1 ) {
330- encoder .encode (ByteBuffer .wrap (buffer ).asCharBuffer ());
331327 String chunk = new String (buffer , 0 , cursor );
332328 emitStreamEvent (streamId , "data" , chunk );
333329 if (tick > 0 )
You can’t perform that action at this time.
0 commit comments