downloaded image half gray

Please provide the following:

  1. SDK Version: 44
  2. Platforms(Android/iOS/web/all): Android

Hello Team ,

I am working with expo-file-system 13.1.4 after downloading the image some images are half grey

  const downloadFile = async (_uri, filename, downloadFileCallback) => {
    if (isMounted) {
      try {
        downloadResumable = FileSystem.createDownloadResumable(
          _uri,
          FileSystem.documentDirectory + filename,
          {},
          downloadFileCallback,
          null
        );
        return await downloadResumable.downloadAsync();
      } catch (error) {
        await FileSystem.deleteAsync(FileSystem.documentDirectory + filename);
      }
    }
  };
 mediaExist = await checkFileExists(filename);
        if (!mediaExist?.exist && isMounted) {
          const result = await downloadFile(
            _uri,
            filename,
            downloadFileCallback
          );
          uri = result?.uri;
        }
        const valueUri = mediaExist?.uri ? mediaExist.uri : uri;
        isMounted && valueUri && setmediaUri(valueUri);

I can’t figure the problem anyone faced this problem before ? thanks

Hey @maxappsimaxeam, could you create a reproducible public repo for this so we can try to replicate it locally? Ideally have asset files provided that you are encountering the issue with. Also, have you noticed any similarities between the assets that are half gray?

Cheers,
Adam

Could you elaborate on what you mean by “half grey”? Do you mean e.g. the top half contains the actual image, but then it’s basically chopped off with the bottom half being grey? Maybe there’s some sort of networking issue during the download and the download does not complete.

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