BitMatrix bits = new QRCodeWriter().encode(otpURI, BarcodeFormat.QR_CODE, 200, 200);
ByteArrayOutputStream out = new ByteArrayOutputStream();
MatrixToImageWriter.writeToStream(bits, "PNG", out);
String qrCodeString = new Base64().encodeToString(out.toByteArray());
Connect with Ping Twitter: @pingidentity LinkedIn Group: Ping's Identity Cloud Facebook.com/pingidentitypage |
But if you do that it is starting a new process on every platform. Its just that OS X puts an icon on it.