2
在我的代碼從MySQL數據庫流OGG/WebM視頻:的OutputStream越來越重
OutputStream os = response.getOutputStream();
while (is.read(content) != -1) { // reading a byte array.
os.write(content);
}
我得到以下異常。
ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
請建議我在JSP頁面中嵌入的servlet中播放流的方式。
這有什麼用? – 2012-04-13 10:20:40