Aspose.BarCode for Cloud is a REST API for Linear, 2D and postal barcode generation and recognition in the cloud. API recognizes and generates barcode images in a variety of formats. Barcode REST API allows to specify barcode image attributes like image width, height, border style and output image format in order to customize the generation process. Developers can also specify the barcode type and text attributes such as text location and font styles in order to suit the application requirements.
This repository contains Aspose.BarCode for Cloud .NET SDK source code. This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your .NET Core or .NET Standard applications quickly and easily.
Aspose.BarCode for Cloud .NET SDK provides cross-platform bindings for:
- .NET Standard 2.0
- .NET Framework 2.0 and higher
To use these SDKs, you will need App SID and App Key which can be looked up at Aspose Cloud Dashboard (free registration in Aspose Cloud is required for this).
The complete source code is available in this repository folder. You can either directly use it in your project via source code or get NuGet distribution (recommended).
To use Aspose.BarCode for Cloud .NET SDK you need to register an account with Aspose Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, see Aspose Cloud Pricing.
From the command line:
nuget install Aspose.BarCode-Cloud
From Package Manager:
PM> Install-Package Aspose.BarCode-Cloud
From within Visual Studio:
- Open the Solution Explorer.
- Right-click on a project within your solution.
- Click on Manage NuGet Packages...
- Click on the Browse tab and search for "Aspose.BarCode-Cloud".
- Click on the Aspose.BarCode-Cloud package, select the appropriate version in the right-tab and click Install.
The examples below show how you can generate Code128 barcode and save it into local file using Aspose.BarCode-Cloud library:
var barCodeApi = new BarCodeApi(AppKey, AppSid);
using (Stream response = api.BarCodeGetBarCodeGenerate(new BarCodeGetBarCodeGenerateRequest("Sample text", "Code128", "jpg")))
using (FileStream stream = File.Create("out.jpg"))
{
response.CopyTo(stream);
}
- .NET Framework 2.0 or later, .NET Standard 2.0
- Json.NET
All Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed under MIT License.