1、前端部分:前端
<img style="position: absolute; top: 0px; left: 0px;" src="http://localhost:8000/queryProPlan1?processId=60030">
2、後端參考後端
InputStream imageStream = diagramGenerator.generatePngDiagram(bpmnModel); // 輸出資源內容到相應對象 byte[] b = new byte[1024]; int len; while ((len = imageStream.read(b, 0, 1024)) != -1) { response.getOutputStream().write(b, 0, len); }