我现在已经取得的一个PNG文件的byte数组:bytes要把这个bytes传到服务器端,然后再处理。dojo.xhrPost( {
url : url,
mimetype : "text/plain",
content : contentObj,
postData : bytes,
load : function(response, ioArgs) {}
error : function(response, ioArgs) {}
});确认在客服端,这个bytes肯定是读对了的。且bytes的长度为861。但在服务器端,只有9个字节。
如果postData为字符串,则是可以传对的。。知道的麻烦解释下。相关的也行。
谢谢!!
url : url,
mimetype : "text/plain",
content : contentObj,
postData : bytes,
load : function(response, ioArgs) {}
error : function(response, ioArgs) {}
});确认在客服端,这个bytes肯定是读对了的。且bytes的长度为861。但在服务器端,只有9个字节。
如果postData为字符串,则是可以传对的。。知道的麻烦解释下。相关的也行。
谢谢!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货