2011-05-04 68 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

相關問題