!hostAddress.equals("127.0.0.1")){ String url = "http://"+hostAddress+":"+port; ByteArrayOutputStream bout = QRCode.from(url).to(ImageType.PNG).stream(); out.add(new PendantURLBean(url, bout.toByteArray())); System.out.println("Listening on: "+url);
.withCharset( PwmConstants.DEFAULT_CHARSET.toString() ) .withSize( width, height ) .stream() .toByteArray();