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

162
Views
La primera llamada de filereader es nula

en la primera llamada en JS FileReader es nulo, y base64string está vacío, pero en la segunda llamada el código funciona ... ¿por qué?

 var base64String = ""; function imageUploaded(input) { var reader = new FileReader(); reader.onloadend = function () { base64String = reader.result.replace("data:", "").replace(/^.+,/, ""); console.log(base64String); } reader.readAsDataURL(input); return base64String; }
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!