数据库中存储blob类型图片,取出显示到页面

二进制数组放进new的String中就会变成流的形式,直接赋给src。



	byte[] b = (byte[]) map.get("ptButtonPic");
	String buffer = new String(b);
	map.put("ptButtonPic", "<img id='"+map.get("productCd")+"'src='"+buffer+"' style='margin-top:5%;display: block;width:100px;height:100px'>");



数据库中存储blob类型图片,取出显示到页面
仅记录!!!