我想能够发布二进制数据到web服务。使用jquery的ajax发布二进制数据并使用web服务来使用它
我想象它会是这个样子:
$.ajax({
url: '/MyPage.aspx/DoStuff',
type: 'POST',
contentType: // some content type ?
data: rawData // may be string or object, depending on format above.
});
和MyPage.aspx.cs:
[WebMethod]
public static void DoStuff(object data) // some particular input type?
{
//Do stuff
}