Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

202
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!