Questions tagged [rn-fetch-blob]

99 questions
0
votes
0 answers

I cant able to send in image data to my server using RNFetchBlob in react native

I am making a image upload page. i used 2 library 1.react-native-image-picker and rn-fetch-blob. when i perform a script it's show an error like "RNFetchBlob failed to create request multipart body :Value for data cannot be cast from…
0
votes
1 answer

react-native-mail: app crashing with attachment for Android v11

I'm using react-native-mail in my React Native app. This is my code: const path = RNFetchBlob.fs.dirs.CacheDir + '/' + SHA1(this.fileSource.uri) + '.pdf' const self = this; let data = this.fileSource.uri.replace(/data:application\/pdf;base64\,/i,…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
0
votes
1 answer

Read files function is crashing in RNFetchBlob in react native android

I am trying to share a pdf file in react native. But app is crashing on doing so. Please help. Following is the code async function func_1( pdfUrl: string, ) { let result = Platform.OS === 'android' && (await…
0
votes
0 answers

React native rn-fetch-blob download issue

In react native library rn fetch blob i want to fetch data from api and save. The problem i am facing is that i want to save the file from api only after downloading complete. And if downloading cancelled there is no file to be stored . Is there any…
0
votes
0 answers

React Native Fetch Blob/React Native Blob Util Fail in Production but not in Developer time

I am trying to download a pdf generated through an own api that worked normally for me until yesterday, since then it has stopped working without any modification. Reviewing in developer mode through the metro everything seems to work correctly…
0
votes
1 answer

RNFetchblob Fetch API call, Formdata works in Android and works only sometimes in IOS React native

I'm using RnfechBlob for uploading images in blob format, it's properly working in Android and only works sometimes in ios, I'm getting a error as : cannot parse response in IOS. return await RNFetchBlob.fetch( "POST", `${urlToUpload}`, { …
0
votes
0 answers

Download a .docx file with React Native and RNFetchBlob

I've try a lot of things but nothing works. I make a function to download .xslx file, and she works. This is my function : const { config, fs } = RNFetchBlob var token = await getToken(); const link = host + api let path; if…
Pentagura
  • 551
  • 2
  • 8
  • 25
0
votes
2 answers

React Native download and open file - file is blank on Android

So, I am using react-native-fs to download files from a url and then open to view/share/print them with react-native-file-viewer. This works fine for iOS but on Android there is an issue. I assume the file is downloading correctly since when passing…
0
votes
0 answers

Build error with rn-fetch-blob on windows

Hi I am getting an error Unable to resolve module 'rn-fetch-blob' while bundling my app with native template 6.1.5 This is the error [Error] error Unable to resolve module rn-fetch-blob from…
Elvisworld
  • 48
  • 1
  • 6
0
votes
1 answer

Play remote audio with react-native-audio-recorder-player and RNFetchBlob not working on iOS

I'm working on a React Native app where I need to load an audio file from the backend and play it in the app. For this I'm using the packages RNFetchBlob and react-native-audio-recorder-player. The problem is that my implementation works perfectly…
Bruno
  • 1
  • 1
  • 4
0
votes
1 answer

How to save pdf from an api response to file system in react native?

I'm receieving a blob from api and i want to save it as a pdf document to file system.But on saving I'm getting a file with size 0B in my mobile Code export const getParkingReciept = (bookindId) => { return async function (dispatch,…
Arjun
  • 1,116
  • 3
  • 24
  • 44
0
votes
1 answer

Converting image (iOS) URI from react-native-image-picker to path using rn-fetch-blob

I'm using react-native-image-picker to pick the images. After picking image, I want to upload these image to server using fetch, there I need an absolute file path. So, for converting URI to path I'm using rn-fetch-blob, but it is throwing errors as…
Harsha
  • 760
  • 1
  • 7
  • 21
0
votes
1 answer

React native fetch blob not downloading image on iOS

I am trying to download image using rn-fetch-blob library but it is not getting downloaded from my server. The same code is working well with android but not on iOS. I am also using camera roll to save the image in the gallery but it is throwing the…
Knevagi
  • 157
  • 1
  • 1
  • 13
0
votes
1 answer

RN fetch blob downloaded images/files not showing after update the app

I'm using rn-fetch-blob package for download the images in cache. and I have shown the images. If I update the app to new version, then the downloaded image not showing in IOS. Any solution for this? Getting this error…
A.Gomathi sankar
  • 109
  • 3
  • 11
0
votes
1 answer

How can I access my videos from internal storage with react native video?

I am trying to make a simple video player using react native where, when the app is initialized it will fetch the playlist from a server, automatically download them and then play from local storage. I am not sure if i need to store the playlist in…