Save "download url" obtained from Firebase in a Database

0

I have an app that allows you to select cell images and save them in Firebase and save the "download url" in the database ... The problem is that saving the URL in the database only saves me the half of this url. I did a toast to verify if it captured the entire URL and if it did .. -User webservice -The type of data that I use in the DB is LONGTEXT What could be my mistake?

//obtener url de descarga de la imagen de firebase
Uri DescargarFoto = taskSnapshot.getDownloadUrl();
//Mostrar imagen en una ImageView
Glide.with(MainActivity.this)
  .load(DescargarFoto)
  .fitCenter()
  .centerCrop()
  .into(Imagenview);
//Mostrar url de la imagen
Toast.makeText(MainActivity.this, "url de la imagen: " + DescargarFoto, Toast.LENGTH_LONG).show();

@Override
public void run() {
  //guardar "url de descarga" en la base de datos
  enviarDatosGET(DescargarFoto);
  runOnUiThread(new Runnable() {
    @Override
    public void run() {
      Toast.makeText(getApplicationContext(), "Datos almacenados con Exito", Toast.LENGTH_LONG).show();
    }
  });
}
    
asked by Andy Puertas Alejos 20.06.2017 в 16:38
source

0 answers