前臺獲取後臺返回的圖片並顯示

後臺:html String base64str=new String(log.getRequest_imgdata());//log爲實體 括號裏面是圖像的get方法 返回爲Byte[]型 String new str=new String("\"data:image/jpg;base64,"+base64str+"\"");//拼裝Base64字符串頭 response.getWriter()
相關文章
相關標籤/搜索