ByteScout QR Code SDK - VB.NET - Encode Binary Data to QR Code - ByteScout

ByteScout QR Code SDK – VB.NET – Encode Binary Data to QR Code

  • Home
  • /
  • Articles
  • /
  • ByteScout QR Code SDK – VB.NET – Encode Binary Data to QR Code

encode binary data to QR code in VB.NET with ByteScout QR Code

encode binary data to QR code in VB.NET

The sample source codes on this page will demonstrate you how to make encode binary data to QR code in VB.NET. ByteScout QR Code was made to help with encode binary data to QR code in VB.NET. 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.

VB.NET code snippet like this for ByteScout QR Code works best when you need to quickly implement encode binary data to QR code in your VB.NET application. To do encode binary data to QR code in your VB.NET project or application you may simply copy & paste the code and then run your app! Enjoy writing a code with ready-to-use sample VB.NET codes to implement encode binary data to QR code using ByteScout QR Code.

ByteScout QR Code is available as free trial. You may get it from our website along with all other source code samples for VB.NET applications.

Try it today: Get 60 Day Free Trial or sign up for Web API

Program.vb
      
Imports System.Diagnostics Imports System.Text Imports Bytescout.BarCode Class Program Friend Shared Sub Main(ByVal args As String()) ' Create and activate QRCode component instance Using barcode As New QRCode() barcode.RegistrationName = "demo" barcode.RegistrationKey = "demo" ' Sample byte array to use as value Dim byteArray As Byte() = New Byte() {0, 10, 11, 12, 13, 14, 15, &HFF} ' Set value by converting byte array to string barcode.Value = Encoding.ASCII.GetString(byteArray) ' Save barcode image barcode.SaveImage("result.png") End Using ' Open the image in default associated application (for the demo purpose) Process.Start("result.png") End Sub End Class

Try it today: Get 60 Day Free Trial or sign up for Web API

QRCodeWithBinaryData.sln
      
Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "QRCodeWithBinaryData", "QRCodeWithBinaryData.vbproj", "{0F5DF480-9BF6-4FD2-91C6-D9F524E10B62}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {0F5DF480-9BF6-4FD2-91C6-D9F524E10B62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {0F5DF480-9BF6-4FD2-91C6-D9F524E10B62}.Debug|Any CPU.Build.0 = Debug|Any CPU {0F5DF480-9BF6-4FD2-91C6-D9F524E10B62}.Release|Any CPU.ActiveCfg = Release|Any CPU {0F5DF480-9BF6-4FD2-91C6-D9F524E10B62}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal

Try it today: Get 60 Day Free Trial or sign up for Web API

QRCodeWithBinaryData.vbproj
      
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{0F5DF480-9BF6-4FD2-91C6-D9F524E10B62}</ProjectGuid> <OutputType>Exe</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>QRCodeWithBinaryData</RootNamespace> <AssemblyName>QRCodeWithBinaryData</AssemblyName> <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>bin\Debug\</OutputPath> <DefineConstants>DEBUG,TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> <OutputPath>bin\Release\</OutputPath> <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.Targets" /> <ItemGroup> <Import Include="Microsoft.VisualBasic" /> <Import Include="System" /> <Reference Include="Bytescout.BarCode.QRCode, Version=1.0.0.100, Culture=neutral, PublicKeyToken=f7dd1bd9d40a50eb, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> <HintPath>c:\Program Files\Bytescout QR Code SDK\net40\Bytescout.BarCode.QRCode.dll</HintPath> </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Xml" /> <Compile Include="Program.vb" /> <Compile Include="Properties\AssemblyInfo.vb" /> </ItemGroup> </Project>

Try it today: Get 60 Day Free Trial or sign up for Web API

MORE INFORMATION

Get 60 Day Free Trial or Visit ByteScout QR Code page

Explore ByteScout QR Code documentation

WEB API VERSION

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next