post发送 ArrayBuffer
// 用 POST 方法将 ArrayBuffer 发送到服务器 var myArray = new ArrayBuffer(512); var longInt8View = new Uint8Array(myArray); for (var i=0; i< longInt8View.length; i++) { longInt8View[i] = i % 255; } var xhr = new XMLHttpRequest; xhr.open("POST", url, false); xhr.send(myArray); --------------------- 作者:kikajack 来源:CSDN 原文:https://blog.csdn.net/kikajack/article/details/79298363 版权声明:本文为博主原创文章,转载请附上博文链接!
服务器接收
Stream stream = Request.InputStream; MemoryStream ms = new MemoryStream(); stream.CopyTo(ms); //把Stream流Copy到MemoryStream。这样可以进行查找操作了。 byte[] byt = ms.ToArray();
http://www.huangwenchao.com.cn/2015/09/html-file-blob.html
https://blog.csdn.net/moonpure/article/details/50462043