Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

391
Vistas
[Unhandled promise rejection: Error: Location "imageURL" isn't readable - Expo React Native

I am trying to convert an firebase image URL to base64 using expo FileSystem but getting following error.

[Unhandled promise rejection: Error: Location "https://pngimg.com/uploads/birds/small/birds_PNG108.png" isn't readable - Expo React Native

URL is totally fine and perfect as I can open it in browser. I am trying following URL, and tried multiple other URLs as well.

https://pngimg.com/uploads/birds/small/birds_PNG108.png

Following is my code.

import * as FileSystem from 'expo-file-system';
<TouchableOpacity onPress={async () => {
      const base64 = await FileSystem.readAsStringAsync('https://pngimg.com/uploads/birds/small/birds_PNG108.png', { encoding: 'base64' });
        Share.share(
          {
            title: 'test title',
            url: item.url,
          },
          {
            excludedActivityTypes: [
              
            ],
          }
        );
     }}>
    </TouchableOpacity>
    
  )}

Couldn't find any solution to this problem on any forum.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Maybe you should rather use

import * as Sharing from 'expo-sharing';

Save the image temporary on disc and use the uri to share the image.

than

import { Share} from 'react-native';

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda