Imgur

ОПЛАЧЕНО
Verified
От Imgur | Обновлено 16일 전 | Entertainment
Популярность

9.9 / 10

Задержка

1,122ms

Уровень обслуживания

100%

Health Check

N/A

Назад ко всем обсуждениям

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?

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии