Imgur

PAID
Verified
By Imgur | Updated 15日前 | Entertainment
Popularity

9.9 / 10

Latency

1,116ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Get binary data for an image uploaded using input type="file"

In the Imgur Image Upload, you ask us to provide you with a binary file, base64 data, or a URL for an image. I know how to get base64 data which is using the FileReader.readAsDataURL but I couldn’t find how to get a binary file. I tried FileReader.readAsBinaryString but it didn’t work and I kept getting 400 (Bad Request) errors. Can you please help?

Join in the discussion - add comment below:

Login / Signup to post new comments