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

222
Views
¿Cómo convertir una imagen de blob a base 64 en JavaScript?

Esta es la situación: obtengo una imagen como entrada y luego tengo que mostrarla, y no tengo problemas con eso. A continuación, necesito convertir URL.createObjectURL (event.target.files [0]) a base64, para pasarlo al backend. ¿Tienes alguna idea de cómo hacerlo? Adjuntaré el código a continuación.

 const onImageChange = (event) => { if (event.target.files && event.target.files[0]) { setImage(URL.createObjectURL(event.target.files[0])); console.log(event.target.files[0]); //var convertedImageBase64 = Convert the image i get from file system to base64 setImageName(convertedImageBase64); } }
about 4 years ago · Juan Pablo Isaza
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!