# Step 1: Create barcode qr = BarcodePao::QRCode.new("png") # Step 2: Draw! qr.draw(code, 300) base64 = qr.get_image_base64
Preview
PNGEnter data and it will render automatically
Pure Ruby barcode library — Sinatra REST API
Ruby + Sinatra# Step 1: Create barcode qr = BarcodePao::QRCode.new("png") # Step 2: Draw! qr.draw(code, 300) base64 = qr.get_image_base64