2011-05-04 69 views

回答

1

将发布的文件转换为字节流。

byte[] myByte = new byte[fupUpload.PostedFile.ContentLength]; 
Stream imgStream = fupUpload.PostedFile.InputStream; 
imgStream.Read(myByte, 0, fupUpload.PostedFile.ContentLength); 

然后使用ADO.NET模型中myByte流保存到数据库,您正在使用的应用程序。

+0

Thanx for the answer – shalini 2011-05-04 10:05:59

相关问题