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

131
Views
URL.createobjecturl() no crea la URL para la imagen correcta

Tengo un archivo de imagen codificado como así:

 const file = new File(["large base64 encoding in string"], "foo.txt", { type: "img/png", });

Paso este archivo a URL.createobjecturl() así:

 var imageUrl = URL.createObjectURL(file)

Sin embargo, cuando registro la variable imageUrl , no abre la imagen correcta, sino que abre una página aparentemente en blanco como esta: ingrese la descripción de la imagen aquí

¿Por qué sucede esto y cómo puedo solucionarlo? Siento que tiene algo que ver conmigo codificando la codificación base 64 para la imagen o el hecho de que la codificación base 64 está en una cadena.

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!