XMLHttpRequestでバイナリな文字列を送信できそうなメソッド
#XMLHttpRequest
#バイナリ文字列
#binary
XMLHttpRequest.sendAsBinary(binaryString);
参考:
XMLHttpRequest.sendAsBinary() - Web APIs | MDN
発見場所:
drag and drop | Scene Research Station
バイナリ
なら
Blob
とかで送るなら
send()
でもOK。文字列を
text/plain
にしないで送る方法なのかな?
ただし、
MDN
では単に
send()
を使うべきと言っている。
https://gyazo.com/6dba2b057e471de73c91f7ab031bc720