We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ce746e commit cab8b46Copy full SHA for cab8b46
src/android/FileTransfer.java
@@ -23,6 +23,7 @@ Licensed to the Apache Software Foundation (ASF) under one
23
import java.io.Closeable;
24
import java.io.File;
25
import java.io.FileNotFoundException;
26
+import java.io.FileOutputStream;
27
import java.io.FilterInputStream;
28
import java.io.IOException;
29
import java.io.InputStream;
@@ -792,7 +793,7 @@ public void run() {
792
793
// write bytes to file
794
byte[] buffer = new byte[MAX_BUFFER_SIZE];
795
int bytesRead = 0;
- outputStream = resourceApi.openOutputStream(targetUri);
796
+ outputStream = new FileOutputStream(file);
797
while ((bytesRead = inputStream.read(buffer)) > 0) {
798
outputStream.write(buffer, 0, bytesRead);
799
// Send a progress event.
0 commit comments