輸出檔案

res.getWriter()

即文字資料流輸出,setConentType() 字元碼須 優先 設定才會寫入回應。

res.getOutputStream()

即二位元資料流輸出。

不可同時使用,否則發生 illegalStateException

Last updated

Was this helpful?