Questions tagged [rn-fetch-blob]

99 questions
1
vote
0 answers

Downloading a Excel sheet from server using fetch blob react native returning error: Operation not permitted for android 11

I am trying to download an Excel Sheet given a Base64 string using RNFetchBlob, I'm able to download for android, SDK version 29, but when I try to download from android 11 it showing Error: Operation not permitted. My code is: downloading = (data,…
Rahul T K
  • 11
  • 1
1
vote
1 answer

React-native RNFetchBlob: Axios Post request sends string instead of binary data

I have been implementing upload file functionality into React-native recently and came across an error where I need to post binary file data into Request body. First of all, I have checked how Postman works and I tested this API into postman where I…
1
vote
1 answer

React-native : self-signed certification implementation

Do you known how properly work a fetch call with a self-signed certification in react-native app ? With a classic fetch : TypeError: Request failed With a rn-fetch-blob fetch : [Error: java.security.cert.CertPathValidatorException: Trust anchor for…
1
vote
1 answer

Unable to read file contents in react-native >0.59

I want to upload documents in my react native app and for that I am using react-native-document-picker But to read the base64 content of the file react-native-fs is needed which has a dependency issue (needs react-native v0.59) I am unable to…
1
vote
0 answers

Downloading PDF file in React Native for IOS using rn-fetch-blob

I use this library (rn-fetch-blob) to download base64 pdf from the server. This is my code below: RNFetchBlob.config({ fileCache: true, path: RNFetchBlob.fs.dirs.DocumentDir + "/" + this.getFileName(), }) .fetch( …
1
vote
0 answers

rn-fetch-blob - idownload not working on ios for files without extension pdf

Issue download not working on iOS for files without extension with error message "protocol error" but works on android if I put a file url like this https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf it works fine. I'm using…
Dev strange
  • 138
  • 1
  • 2
  • 10
1
vote
1 answer

problem upload image with 'rn-fetch-blob' in 'IOS'

I use rn-fetch-blob to upload an image. This works correctly in Android but does not work in iOS. I use data parameter in response to create image link , and when I check response from iOS I found data is null in iOS response . I don't know why why…
Meisan Saba
  • 800
  • 2
  • 9
  • 25
1
vote
2 answers

Delete file from storage using RNFetchBlob

I have the following code to unlink/delete a file from the downloads folder I created also through the application using the same path. Note I am using the RNFetchBlob package. --- const fs = RNFetchBlob.fs const base64 = RNFetchBlob.base64 const…
Aleksandar Zoric
  • 1,343
  • 3
  • 18
  • 45
1
vote
1 answer

uploadProgress not being triggered rn-fetch-blob

Working on a react-native app, I'm having the following issue in both platforms (iOS and Android) Environment: "react-native": "^0.61.1", "rn-fetch-blob": "^0.12.0" I'm doing a multipart request to upload a video to the server. Given this request…
JP Mazza
  • 51
  • 6
1
vote
2 answers

Not listing the files using rn fetch blob in react native [Error: Attempt to get length of null array]

I was trying to list all the files in a folder using rn fetch blob in react native. When i tried to list it i am getting an error saying [Error: Attempt to get length of null array] here is the below code I have tried to list the files. try { …
Thomas James
  • 187
  • 2
  • 16
1
vote
0 answers

Download "Content-Disposition": "attachment; filename=example.mp3" in react-native

I was trying to download an mp3 file and it's name specified in the URL. https://aaaa&user=shanto3@gmail.com&pass=aaaa&device_id=0ef2c8496369ade1&input_text=Fine&lang=fr&output_file=151.20200706103512.mp3&info=tts_mp3 I want to download…
1
vote
0 answers

use of promise.all to download the images using rn-fetch-blob?

downloadImagesInParallel = async (url) => { const dirs = RNFetchBlob.fs.dirs reactotron.log('downloadImagesInParallel', url) await RNFetchBlob.config({ appendExt : 'png', path : dirs.DocumentDir +…
rohit garg
  • 283
  • 3
  • 13
1
vote
2 answers

How to read image as binary/blob in reactnative

I use react-native-camera to take a picture and it will save in the mobile like file:///data/user/0/xxx/cache/Camera/4b1bde90-fa5e-4f91-aac1-029a8b67b3fc.jpg now I want to upload this image to server and my API scheme is as below const…
1
vote
1 answer

Use rn-fetch-blob with android Storage Access Framework

I am using rn-fetch-blob to download photos and want them to be stored in external sd card. While I always get 'permission denied' even I have set android.permission.WRITE_EXTERNAL_STORAGE in AndroidManifest.xml and have ask permission request by…
kt_at_kt
  • 323
  • 3
  • 11
1
vote
1 answer

Download Audio file in react native?

I'm trying to download audio file "mp3" using rn-fetch-blob. So I have more than one cases :) When I trying to add a path to RNFetchBlob config like this const pathFile = RNFetchBlob.fs.dirs.MainBundleDir // Or .DocumentDir // Others is crashed my…
Oliver D
  • 2,579
  • 6
  • 37
  • 80