如何将doc文件发送到asp.net中的数据库
答
将发布的文件转换为字节流。
byte[] myByte = new byte[fupUpload.PostedFile.ContentLength];
Stream imgStream = fupUpload.PostedFile.InputStream;
imgStream.Read(myByte, 0, fupUpload.PostedFile.ContentLength);
然后使用ADO.NET模型中myByte
流保存到数据库,您正在使用的应用程序。
Thanx for the answer – shalini 2011-05-04 10:05:59