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 QR Code generation library. It provides full control on 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 code 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 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.

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

Try ByteScout QR Code today: Get 60 Day Free Trial or sign up for Web API

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"); } } } }

Try ByteScout QR Code today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout QR Code page

Explore ByteScout QR Code documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next