如題。謝謝.string path = File1.PostedFile.FileName;
??????????? Stream fileStream = File1.PostedFile.InputStream;??????????? int length = File1.PostedFile.ContentLength;??????????? byte[] wordData=new byte[length];不會寫了。知道后面還要寫?Response.ContentType = "application/msword";。但是寫出來不是顯示在頁面上而是成下載樣
?
1 回答

陪伴而非守候
TA貢獻1757條經(jīng)驗 獲得超8個贊
試試下面的代碼:
Response.ContentType = "application/msword";
Response.WriteFile(FilePath);
- 1 回答
- 0 關注
- 605 瀏覽
添加回答
舉報
0/150
提交
取消