Questions tagged [rn-fetch-blob]
99 questions
10
votes
4 answers
RN fetch blob download docx or pdf from URL in IOS
What is done:
Implemented in Android and its getting downloaded in specific DCIM directory in android.
In ios using DocumentDir to download the pdf or docx file. Using "rn-fetch-blob": "^0.12.0";
Error:
In IOS it says the message in console :
The…

Gaurav Roy
- 11,175
- 3
- 24
- 45
9
votes
4 answers
react-native How to open local file url using Linking?
I'm using the following code to download a file (can be a PDF or a DOC) and then opening it using Linking.
const { dirs } = RNFetchBlob.fs;
let config = {
fileCache : true,
appendExt : extension,
addAndroidDownloads : {
…

Abhishek
- 153
- 1
- 3
- 15
7
votes
1 answer
RNFetchBlob.android.actionViewIntent not working on android 11
I have updated my Android's targetSdkVersion to 30, and I realized that the actionViewIntent function does not work on Android 11.
There is no error thrown. So I and not able to target the exact issue.
Below is my…

Rajkumar J
- 161
- 11
6
votes
1 answer
How to ignore SSL cert issues in fetch() call when using Expo?
seems there's no way in react-native to disable SSL verification during fetch() call. Someone mentioned here that rn-fetch-blob can achieve this, but as one of the comments alludes to - Expo isn't compatible with rn-fetch-blob (and building an APK,…

Danny
- 181
- 1
- 14
5
votes
2 answers
rn-fetch-blob Error: RNFetchBlob.fetchBlobForm failed to create request body
async postFileUpload(payload) {
const rnfetchfile = RNFetchBlob.wrap(payload.uri);
try {
console.log(
'POST',
'https://******.***.**/******/***/upload_*******_file',
{
...this.config,
…

Rahul Shakya
- 1,269
- 15
- 15
4
votes
1 answer
RN-fetch-blob bad base64 - android only issue
I am having an issue within react native where I am downloading a base 64 string from an API and rendering it as a PDF on mobile devices.
The project is built with React native - the code works fine on iOS but on Android we are getting a 'bad base…

Gavin Crawley
- 335
- 3
- 14
- 25
4
votes
4 answers
React Native download file using RNFetchBlob's Download Manager on Android 10
I need to download file to user's Download directory in React Native app using rn-fetch-blob, but seems like it is not compatible with Android 10, because I am getting error:
First I ask for permissions:
try {
const granted = await…

Baterka
- 3,075
- 5
- 31
- 60
4
votes
0 answers
How to read big file in react-native
I need to upload big file on server using rn-fetch-blob in react native. The problem is when file size is more than ~10MB, App crashes without error message. File path comes from react-native-share-extension. Platform - iOS. On Android and iOS…

Andrey_7557
- 41
- 4
4
votes
2 answers
Convert Base64 to png and save in the device React Native Expo
I've been trying to save an image on a mobile device with React Native and Expo, i have tried with these packages:
import RNFetchBlob from 'react-native-fetch-blob';
import RNfs from 'react-native-fs ';
but both give me this error when implementing…

Emmanuel Garcia Martinez
- 520
- 3
- 10
- 24
4
votes
3 answers
React Native Fetch Blob creating issue while pod install on iOS
I've install react-native-fetch-blob on react-native version 0.60.5.While I run pod install, the error appears as you can see in the
Kindly guide me on how to resolve this issue

Zaid Qureshi
- 611
- 10
- 19
4
votes
3 answers
Rotate image and save in React-Native
I am going to rotate the image in react–native and I would like to get base64 of rotated image.
I used several libraries
react-native-image-rotate: It's working well on Android but on iOS I get rct-image-store://1 as url so I tried getting base64…

Shing Ho Tan
- 931
- 11
- 30
3
votes
0 answers
React Native application using rn-fetch-blob crashes if server returns an error
I am trying to learning React Native and in the process I am trying to download a file using rn-fetch-blob using the following code
var url = APIPREFIX + '/image/download/' + image.id;
var config = {
path: ((Platform.OS…

A4B4
- 43
- 5
3
votes
0 answers
Download manager download failed the file does not downloaded to destination
I am trying to download image which is coming from api.I am using rn-fetch-blob package to download file. But the problem here is when i click on download file do get downloaded but it gives some error saying
Download manager donwload failed , the…

aditya kumar
- 2,905
- 10
- 39
- 79
3
votes
1 answer
How to upload multiple files using RNFetchBlob.fetch and react-native-document-picker
I am using react-native-document-picker and rn-fetch-blob to upload the file. It's working as expected for a single file. But I couldn't able to upload multiple files to the server.
Upload function
const uploadPic=()=>{
// alert('ddf');
…

user2468312
- 361
- 2
- 7
- 21
3
votes
0 answers
How to get real path from URI of a file in sdcard?
I'm using react-native-document-picker in order to pick files and send them to the server. After picking the file, I use RNFetchBlob.fs.stat(uri) from rn-fetch-blob package to get the real path from the URI that the picker gives me. It works fine…

Zeynab Rostami
- 423
- 4
- 13