ByteScout QR Code SDK - C# - Create QR Code with Binary Data - ByteScout

ByteScout QR Code SDK – C# – Create QR Code with Binary Data

  • Home
  • /
  • Articles
  • /
  • ByteScout QR Code SDK – C# – Create QR Code with Binary Data

How to create QR code with binary data in C# using ByteScout QR Code

How to create QR code with binary data in C#

We made thousands of pre-made source code pieces for easy implementation in your own programming projects. ByteScout QR Code is a QR Code generation library. It provides full control over the quality, features, and encoding. Can embed logo image right into QR Code itself. Batch barcode generation and many special features like vCard or URL encoding are also supported. It can be used to create QR codes with binary data using C#.

This rich sample source code in C# for ByteScout QR Code includes the number of functions and options you should do calling the API to create a QR code with binary data. Just copy and paste the code into your C# application’s code and follow the instruction. Enjoy writing a code with ready-to-use sample C# codes.

The free trial version of the ByteScout QR Code is available for download from our website. Get it to try other source code samples for C#.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.cs

      
using System.Diagnostics; using System.Text; using Bytescout.BarCode; namespace QRCodeWithBinaryData { class Program { static void Main(string[] args) { // Create and activate QRCode component instance using (QRCode barcode = new QRCode()) { barcode.RegistrationName = "demo"; barcode.RegistrationKey = "demo"; // Sample byte array to use as value byte[] byteArray = new byte[] { 0, 10, 11, 12, 13, 14, 15, 0xFF }; // Set value by converting byte array to string barcode.Value = Encoding.ASCII.GetString(byteArray); // Save barcode image barcode.SaveImage("result.png"); // Open the image in default associated application (for the demo purpose) Process.Start("result.png"); } } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout QR Code Home Page

Explore ByteScout QR Code Documentation

Explore Samples

Sign Up for ByteScout QR Code Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO GUIDE

Tutorials:

prev
next