java 字符串转二维码
该jar包用来将字符串转成二维码 代码如下: //content:要转换的内容 //生成的二维码图片的绝对路径 public static void buildQuickMark(String content, String path) throws Exception { try { BitMatrix byteMatrix = new MultiFormatWriter().encode(new String( content.getBytes(), "iso-8859-1"), BarcodeFormat.QR_CODE, 200, 200); MatrixToImageWriter.writeToFile(byteMatrix, "png", new File(path)); } catch (Exception e) { e.printStackTrace(); } }