Questions tagged [react-native-fetch-blob]

A data transfer library for React Native.

Repository

128 questions
0
votes
0 answers

Unable to read a PDF file at /storage/emulated/0/Android/data folder

I am using react-native-html-to-pdf to generate a PDF from an HTML string. It works file and I can see that the generated PDF path is /storage/emulated/0/Android/data/**MY_PACKAGE_NAME**/files/TestFolder/mytest_print.pdf as shown in the code…
Chaudhry Talha
  • 7,231
  • 11
  • 67
  • 116
0
votes
0 answers

RNFetchBlob download file for ios and change its filename

I use library react-native-blob-util for downloading file and saving it in the memory of the phone. It works fine on both, android and ios. However I also wish to give the file particular filename and here I have problem as for android it still…
Jacki
  • 632
  • 3
  • 14
  • 26
0
votes
0 answers

How to load and show an image from blob in react native

after having a look around here and trying the two suggested solutions so far, I cannot seem to download, load and set an image as a state to be displayed in react native. Here's the code: const dlResult = await downloadUrls(urls) console.log…
0
votes
2 answers

I'm getting 'undefined is not an object (near '...}).fs.writeFile(' when trying to download base64 image png in react native React Native

Here is my code: const saveImg = async (base64Img: string, success: Function, fail:Function) => { const isAndroid = Platform.OS === "android" const isIos = Platform.OS === 'ios' const dirs = isIos?…
0
votes
0 answers

Download dash and hls in react native

is there a way to download hls and dash videos in react native so that they can be played offline ? I am trying to use react-native-fetch-blob it successfully downloads mp4 files but unable to download dash and hls. Also is there a way to hide the…
youcef ben
  • 23
  • 1
  • 5
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 download manager fails with status code 16 when downloading on Android

I have been trying to fix an issue with downloading a zip file from our service on our Android app. The iOS works fine, but on Android I get the following error: ExceptionsManager.js:149 Error downloading file Error: Download manager failed to…
Rameez Hussain
  • 6,414
  • 10
  • 56
  • 85
0
votes
1 answer

Save Files in the Android data folder

import RNFetchBlob from 'rn-fetch-blob' var path = RNFetchBlob.fs.dirs.DocumentDir RNFetchBlob .config({ path: toFile }) .fetch('GET', fromUrl) .then(res => { …
Rover
  • 661
  • 2
  • 18
  • 39
0
votes
1 answer

How to play encrypted video in react native offline?

I have video in my local file of android and these are encrypted using AEC algorithm. Is there any straight forward way to play that video in react-native-video ? I tried converting it into base64 and decrypting it slice by slice but…
0
votes
0 answers

How to use fetch in react native

i need help, i wanna get last 5 post from https://www.wired.com/category/security/ with react native but i dont know how i can do this, anybody help me, this is so important for me. i want to show on myscreen with flatlist, but i dont know how i…
0
votes
1 answer

React native : can't unzip the file I get with rn-fetch-blob

I'm trying to download a zip file with rn-fetch-blob, then when I got this file I unzip it with React-native-zip-archive. It often works well, but sometimes, the "unzipFile()" function I've created can't unzip the file, like if it is…
0
votes
1 answer

File is empty in Symfony after uploading with react-native-fetch-blob

I want to upload a picture from react-native to PHP Symfony server. I pick the picture with ImagePicker.showImagePicker and send it with RNFetchBlob.fetch, but in Symfony the file seems to be empty. The $file->getMimeType() return "file does not…
0
votes
0 answers

Objects are not valid as a react child (found : TypeError : filepath.includes is not a function)

I ran into this problem when I tried using react-native-fetch-blob to upload photos in firebase storage! This is the code for uploading the file. uploadImage = (uri, imageName, mime = 'image/jpg') => { return new Promise((resolve, reject) => { …
0
votes
1 answer

RNFetchBlob cannot read files on Android. Gives "Could Not Retrieve File for URI" error

I have to generate a CSV file, pluck it from local storage, upload it to AWS, then mail the link to the user for access. iOS is generating the CSV, uploading successfully, and emailing correctly, while Android is not. I have tried every combination…
0
votes
0 answers

react-native-fetch-blob uploading failure

i use react-native-fetch-blob to send images to spring server. but when i send state it didn't work. the first code is working well but second code is not working. i couldn't find problem between the first and second code. if…
한동준
  • 3
  • 2
1 2 3
8 9