Source Code Files



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

Tutorial on how to create QR code with binary data in C#

Sample source code below will show you how to cope with a difficult task like create QR code with binary data in C#. ByteScout QR Code is the SDK for QR Code barcode generation. This SDK provides full set of features to control output barcodes quality, encoding, size, features. You may change output zize, set an image to be embedded into QR Code barcode generated. Includes special features to encode contact card, URL, phone and other information into QR Code barcode. Can run in batch barcode generation mode and you can use it to create QR code with binary data with C#. This code snippet below for ByteScout QR Code works best when you need to quickly create QR code with binary data in your C# application. Follow the instructions from the scratch to work and copy the C# code. You can use these C# sample examples in one or many applications. ByteScout QR Code free trial version is available on our website. C# and other programming languages are supported.

FOR MORE INFORMATION AND FREE TRIAL:

Download Free Trial SDK (on-premise version) Read more about ByteScout QR Code Explore API Documentation Get Free Training for ByteScout QR Code Get Free API key for Web API visit

Source Code Files:

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

// 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 Process.Start("result.png"); } } } }

QRCodeWithBinaryData.sln

Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QRCodeWithBinaryData", "QRCodeWithBinary EndProject Global

GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU

EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution

{52554423-9A7B-456A-8026-845D1846585E}.Debug|Any CPU.ActiveCfg = Debug|Any CP

{52554423-9A7B-456A-8026-845D1846585E}.Debug|Any CPU.Build.0 = Debug|Any CPU {52554423-9A7B-456A-8026-845D1846585E}.Release|Any CPU.ActiveCfg = Release| {52554423-9A7B-456A-8026-845D1846585E}.Release|Any CPU.Build.0 = Release| EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal

VIDEO



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

visit visit PDF.co



................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download