Problem with FileSystem to download file


#1

hi , when i download file

 downloadResumable = new FileSystem.createDownloadResumable(
    // 'http://10.0.2.2:8000/file/file.pdf',
    `${FileSystem.documentDirectory}/Books/32211.pdf`,
    {},
    this.callback
  );  

and call

 async onStart() {
    try {
      const { uri } = await this.downloadResumable.downloadAsync();
      console.log('Finished downloading tp ', uri);
    } catch (e) {
      console.error(e);
    }
  }

i’ts work fine and start downloading but when handler stop download

 async onStope() {
    try {
      await this.downloadResumable.pauseAsync();
    } catch (e) {
      console.log(e);
    }
  }

it’s show problem Socket closed

:sweat:


#2

no replay !!:sweat::sweat::sweat::sweat:


#3

I’ll see if I can find someone to look at this. Sorry for the trouble.


closed #4

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.