如何使用Java(J2SE)创建QRCode
如何使用普通的j2se创建QRcode图像。 任何API或类都可以执行此操作?
为此,您需要下载以下jar子,
- 斑马线核-1.7.jar
- 斑马线,JavaSE的-1.7.jar
来自http://sofzh.miximages.com/java/zxing).stream(); try { FileOutputStream fout = new FileOutputStream(new File(“C:\\QR_Code.JPG”)); fout.write(out.toByteArray()); fout.flush(); fout.close(); } catch (FileNotFoundException e) { // Do Logging } catch (IOException e) { // Do Logging }
希望这可以帮助