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

197
Vistas
How can I send image to other user by using firebase and javascript?

I am new to firebase and I am trying to send image to other users in group. But I can't find correct way to do it... I want display image with it's src stored in database how to do that?


fuction sendImage(){

    if (snpVal.msg.indexOf("base64") !== -1) {
        const dbbbb = db.ref(`WebApp/Web Devs/chatMessages/${chtMainMsg.id}`).push({imageSrc: snpVal.msg});
        const dbmsg = db.ref(`WebApplication/Web Devs/chatMessages/`).child(`${snpVal.chgId}`);

        dbmsg.update({msg: ''});

        let imgElm = document.createElement("img");
        let br = document.createElement("br");

        imgElm.src = snpVal.imageSrc;


        chtMainMsg.innerText = dbmsg;

        chtTxt.appendChild(imgElm);
        chtTxt.appendChild(br);

        if (chtMainMsg.innerText === snpVal.msg) chtMainMsg.innerText = '';

    }

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

0

think the best way would be to store the link in the firebase database service, and query for the value of desired links

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