- 讲师:刘萍萍 / 谢楠
- 课时:160h
- 价格 4580 元
特色双名师解密新课程高频考点,送国家电网教材讲义,助力一次通关
配套通关班送国网在线题库一套
从数据库读出的JPG文件的字符流,转换成图片显示在页面上的相关代码
public void doPost(HttpServletRequest req, HttpServletResponse res)
ServletOutputStream out = res.getOutputStream();
try {
setStmt = Con.createStatement();
} catch (Exception e) {
");
String ls_sql = null;
if (ls_sql == null)
ls_sql = ls_sql.trim();
ResultSet rs = null;
rs = dispStmt.executeQuery(ls_sql);
System.out.println(
");
try {
try {
InputStream is = rs.getBinaryStream(1);
byte bzp = new byte[size];
out.write(bzp);
System.out.println("Wirte image error: " + e.toString());
}
} catch (Exception e) {
}
try {
} catch (Exception e) {
}
责编:罗莉
课程专业名称 |
讲师 |
课时 |
查看课程 |
---|
课程专业名称 |
讲师 |
课时 |
查看课程 |
---|
点击加载更多评论>>