BufferedOutputStream图片输出问题
OutputStream out=null;
BufferedOutputStream bos=null;
byte [] photos=null;
List<Images> imagesList = imagesService.imagesList(start, end);
for (Images images : imagesList) {
photos= ( images.getImagephoto()==null?null:images.getImagephoto() );
}
out=response.getOutputStream();
bos=new BufferedOutputStream(out);
bos.write(photos,0,photos.length);
问题:
求解。。。。
列表是进制,没显示图片。库中是Blob型,映射是byte[]
BufferedOutputStream 怎么把byte输出图片