リンク
こちらを参考
すごく勉強になりました。
概要
- readAsArrayBufferでバイナリに変更
- Uint8Arrayを使って変換
new Uint8Array(binary)
- 初めの10個分を読む
- 1文字ずつ16進数列に変換
toString(16)
- 変換した文字列がどの画像形式か判別する
More than 3 years have passed since last update.
こちらを参考
すごく勉強になりました。
new Uint8Array(binary)
toString(16)
Register as a new user and use Qiita more conveniently