以下是我嘗試以二進制格式存儲上傳文件數據的代碼................ ...需要使用RADUPLOAD存儲上傳文件的二進制格式數據
protected void Button1_Click(object sender, EventArgs e)
{
int PartyRowId = 0;
foreach (UploadedFile file in AsyncUpload1.UploadedFiles)
{
byte[] bytes = new byte[file.ContentLength];
file.InputStream.Read(bytes, 0, Convert.ToInt32(file.ContentLength));
string json3 = "{'value1':" + value+ ",'value2':" + value+ ",'value3':" + value+ ",'PartyDoc':" + bytes + "}";
}
}
我得到了JSON作爲
{'value1':0,'value2':0,'value3':0,'PartyDoc':System.Byte[]}
無法檢索二進制數據請幫我......
謝謝你的工作。 –
其他方意味着當我將數據恢復正確時...... –
是的,這就是正確 – prospector