我通过Xhr
发送blob数据。但我不是在控制器中获取BLOB数据如何在asp.net中通过xmlhttprequest发送blob数据mvc
我已经写的代码:
public ActionResult Content(string data)
{
return Json("suc", JsonRequestBehavior.AllowGet);
}
但data
我正在检索:
var url = "Home/Content"
var oReq = new XMLHttpRequest();
oReq.open("POST", url, true);
var blob = new Blob(['abc123'], {type: 'text/plain'});
oReq.send("data="+blob);
在控制器我已经等被定义一片空白。我做错了什么。
Actionresult => JsonResult? – Sakthivel 2013-05-09 05:23:27
@codebrain我正在使用ActionResult – Jonathan 2013-05-09 05:31:33