视频信息存入数据库的blob字段中,想用asp在网页上显示
1个回答
展开全部
Blob vedio = bean.getImage();
InputStream in = vedio.getBinaryStream();
OutputStream out = response.getOutputStream();
byte[] buf = new byte[(int)img.length()];
int len;
while ((len = in.read(buf)) != -1) {
out.write(buf, 0, len);
}
in.close();
out.close();
InputStream in = vedio.getBinaryStream();
OutputStream out = response.getOutputStream();
byte[] buf = new byte[(int)img.length()];
int len;
while ((len = in.read(buf)) != -1) {
out.write(buf, 0, len);
}
in.close();
out.close();
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询