前提
方法
<\%@ page contentType="text/html" language="java" \%>
<\%@ page buffer="
<\%@ page import="java
<\%@ page import="java
<\% int len =
Class
String url="jdbc:oracle:thin:@
String password="qwertyuiop";
Connection conn= DriverManager
Statement stmt=conn
String sql="select pic from test";
ResultSet rs=stmt
InputStream in = rs
response
response
OutputStream toClient = response
byte[] P_Buf = new byte[len];
int i;
while ((i = in
{
toClient
} in
toClient
toClient
\%>
<\% rs
stmt
conn
需要注意的地方
需要注意的有兩個方面
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20484.html