瀏覽代碼

斑马打印测试

zhuhao 2 年之前
父節點
當前提交
d4031fc979

+ 0 - 6
imcs-admin-boot/imcs-business-biz/src/main/java/com/github/zuihou/business/util/qRcode/Image2Zpl.java

@@ -52,12 +52,6 @@ public class Image2Zpl {
      * @return
      */
     public static String image2Zpl2(BufferedImage image) throws Exception{
-
-        File file = new File("d://a2.jpg");
-        OutputStream out = new FileOutputStream(file);
-        ImageIO.write(image, "jpg", out);
-        out.close();
-
         //获取图片的字节数组
         DataBufferByte data=(DataBufferByte) getBinaryGrayImage(image).getRaster().getDataBuffer();
         byte[] imgData=data.getData();