{"id":21334217,"url":"https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dotnet","last_synced_at":"2026-01-16T10:57:08.724Z","repository":{"id":30529986,"uuid":"125270482","full_name":"aspose-barcode-cloud/aspose-barcode-cloud-dotnet","owner":"aspose-barcode-cloud","description":"Repository contains .NET Library for communicating with the Aspose.BarCode Cloud API","archived":false,"fork":false,"pushed_at":"2025-06-24T12:18:22.000Z","size":874,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-12T11:42:22.167Z","etag":null,"topics":["aspose-cloud","barcode","barcode-cloud","barcode-detection","barcode-generator","barcode-images","barcode-reader","barcode-recognizer","barcode-scanner","barcode-scanning","barcodes","barcodescanner","c-sharp","csharp","dotnet","ean13","nuget","qr","recognition","sdk"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aspose-barcode-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-03-14T20:35:33.000Z","updated_at":"2025-06-24T12:17:37.000Z","dependencies_parsed_at":"2023-11-25T17:23:13.164Z","dependency_job_id":"58175537-5684-43c9-b5ad-7d00f8205778","html_url":"https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dotnet","commit_stats":{"total_commits":65,"total_committers":7,"mean_commits":9.285714285714286,"dds":0.4307692307692308,"last_synced_commit":"780fdf98236b2061ced47348b2db3b147250da12"},"previous_names":[],"tags_count":57,"template":false,"template_full_name":null,"purl":"pkg:github/aspose-barcode-cloud/aspose-barcode-cloud-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-barcode-cloud%2Faspose-barcode-cloud-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-barcode-cloud%2Faspose-barcode-cloud-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-barcode-cloud%2Faspose-barcode-cloud-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-barcode-cloud%2Faspose-barcode-cloud-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aspose-barcode-cloud","download_url":"https://codeload.github.com/aspose-barcode-cloud/aspose-barcode-cloud-dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-barcode-cloud%2Faspose-barcode-cloud-dotnet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266071519,"owners_count":23871940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aspose-cloud","barcode","barcode-cloud","barcode-detection","barcode-generator","barcode-images","barcode-reader","barcode-recognizer","barcode-scanner","barcode-scanning","barcodes","barcodescanner","c-sharp","csharp","dotnet","ean13","nuget","qr","recognition","sdk"],"created_at":"2024-11-21T23:18:31.216Z","updated_at":"2026-01-16T10:57:08.715Z","avatar_url":"https://github.com/aspose-barcode-cloud.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aspose.BarCode Cloud SDK for .NET\n\n[![.NET 10](https://img.shields.io/badge/.NET-10.0-512BD4)](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dotnet/actions/workflows/dotnet-core.yml)\n[![License](https://img.shields.io/github/license/aspose-barcode-cloud/aspose-barcode-cloud-dotnet)](LICENSE)\n[![.NET Core Linux](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dotnet/actions/workflows/dotnet-core.yml/badge.svg?branch=main)](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dotnet/actions/workflows/dotnet-core.yml)\n[![.NET Framework Windows](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dotnet/actions/workflows/net-framework.yml/badge.svg?branch=main)](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dotnet/actions/workflows/net-framework.yml)\n[![Nuget](https://img.shields.io/nuget/v/Aspose.BarCode-Cloud)](https://www.nuget.org/packages/Aspose.BarCode-Cloud/)\n\n- API version: 4.0\n- SDK version: 26.1.0\n\n## SDK and API Version Compatibility:\n\n- SDK Version 25.1 and Later: Starting from SDK version 25.1, all subsequent versions are compatible with API Version v4.0.\n- SDK Version 24.12 and Earlier: These versions are compatible with API Version v3.0.\n\n## Demo applications\n\n[Scan QR](https://products.aspose.app/barcode/scanqr) | [Generate Barcode](https://products.aspose.app/barcode/generate) | [Recognize Barcode](https://products.aspose.app/barcode/recognize)\n:---: | :---: | :---:\n[![ScanQR](https://raw.githubusercontent.com/aspose-barcode-cloud/aspose-barcode-cloud-codegen/main/img/aspose_scanqr-app-48.png)](https://products.aspose.app/barcode/scanqr) | [![Generate](https://raw.githubusercontent.com/aspose-barcode-cloud/aspose-barcode-cloud-codegen/main/img/aspose_generate-app-48.png)](https://products.aspose.app/barcode/generate) | [![Recognize](https://raw.githubusercontent.com/aspose-barcode-cloud/aspose-barcode-cloud-codegen/main/img/aspose_recognize-app-48.png)](https://products.aspose.app/barcode/recognize)\n[**Generate Wi-Fi QR**](https://products.aspose.app/barcode/wifi-qr) | [**Embed Barcode**](https://products.aspose.app/barcode/embed) | [**Scan Barcode**](https://products.aspose.app/barcode/scan)\n[![Wi-FiQR](https://raw.githubusercontent.com/aspose-barcode-cloud/aspose-barcode-cloud-codegen/main/img/aspose_wifi-qr-app-48.png)](https://products.aspose.app/barcode/wifi-qr) | [![Embed](https://raw.githubusercontent.com/aspose-barcode-cloud/aspose-barcode-cloud-codegen/main/img/aspose_embed-app-48.png)](https://products.aspose.app/barcode/embed) | [![Scan](https://raw.githubusercontent.com/aspose-barcode-cloud/aspose-barcode-cloud-codegen/main/img/aspose_scan-app-48.png)](https://products.aspose.app/barcode/scan)\n\n[Aspose.BarCode for Cloud](https://products.aspose.cloud/barcode/) 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.\n\nThis repository contains Aspose.BarCode Cloud SDK for .NET source code. This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your .NET Core or .NET Framework applications quickly and easily.\n\nAspose.BarCode Cloud SDK for .NET provides cross-platform bindings for:\n\n- .NET 8 and higher\n- .NET Standard 2.0 and higher\n- .NET Framework 4.6.2 and higher\n\nTo use these SDKs, you will need Client Id and Client Secret which can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/applications) (free registration in Aspose Cloud is required for this).\n\n## How to use the SDK?\n\nThe 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](https://www.nuget.org/packages/Aspose.BarCode-Cloud/) (recommended).\n\n## Prerequisites\n\nTo use Aspose.BarCode Cloud SDK for .NET you need to register an account with [Aspose Cloud](https://www.aspose.cloud) and lookup/create Client Secret and Client Id at [Cloud Dashboard](https://dashboard.aspose.cloud/applications). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/).\n\n## Installation\n\n### Install Aspose.BarCode-Cloud via NuGet\n\nFrom the command line:\n\n nuget install Aspose.BarCode-Cloud\n\nFrom Package Manager:\n\n```ps\nPM\u003e Install-Package Aspose.BarCode-Cloud\n```\n\nFrom within Visual Studio:\n\n1. Open the Solution Explorer.\n2. Right-click on a project within your solution.\n3. Click on *Manage NuGet Packages...*\n4. Click on the *Browse* tab and search for \"Aspose.BarCode-Cloud\".\n5. Click on the Aspose.BarCode-Cloud package, select the appropriate version in the right-tab and click *Install*.\n\n## Recognize QR code\n\nThe examples below show how you can recognize QR code from image:\n\n```csharp\nusing Aspose.BarCode.Cloud.Sdk.Api;\nusing Aspose.BarCode.Cloud.Sdk.Interfaces;\nusing Aspose.BarCode.Cloud.Sdk.Model;\n\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Reflection;\nusing System.Threading.Tasks;\n\nnamespace ReadQR;\n\ninternal static class Program\n{\n    private static Configuration MakeConfiguration()\n    {\n        var config = new Configuration();\n\n        string? envToken = Environment.GetEnvironmentVariable(\"TEST_CONFIGURATION_JWT_TOKEN\");\n        if (string.IsNullOrEmpty(envToken))\n        {\n            config.ClientId = \"Client Id from https://dashboard.aspose.cloud/applications\";\n            config.ClientSecret = \"Client Secret from https://dashboard.aspose.cloud/applications\";\n        }\n        else\n        {\n            config.JwtToken = envToken;\n        }\n\n        return config;\n    }\n\n    private static async Task\u003cstring\u003e ReadQR(IRecognizeApi api, string fileName)\n    {\n        byte[] imageBytes = await File.ReadAllBytesAsync(fileName);\n        string imageBase64 = Convert.ToBase64String(imageBytes);\n\n        BarcodeResponseList recognized = await api.RecognizeBase64Async(\n            new RecognizeBase64Request()\n            {\n                BarcodeTypes = new List\u003cDecodeBarcodeType\u003e { DecodeBarcodeType.QR },\n                FileBase64 = imageBase64\n            }\n        );\n\n        return recognized.Barcodes[0].BarcodeValue;\n    }\n\n    public static async Task Main(string[] args)\n    {\n        string fileName = Path.GetFullPath(Path.Join(\n            Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location),\n            \"..\", \"..\", \"..\", \"..\",\n            \"qr.png\"\n        ));\n\n        var api = new RecognizeApi(MakeConfiguration());\n\n        string result = await ReadQR(api, fileName);\n        Console.WriteLine($\"File '{fileName}' recognized, result: '{result}'\");\n    }\n}\n\n```\n\n## Generate QR code\n\nThe examples below show how you can generate QR code and save it into local file using Aspose.BarCode-Cloud library:\n\n```csharp\nusing Aspose.BarCode.Cloud.Sdk.Api;\nusing Aspose.BarCode.Cloud.Sdk.Interfaces;\nusing Aspose.BarCode.Cloud.Sdk.Model;\n\nusing System;\nusing System.IO;\nusing System.Reflection;\nusing System.Threading.Tasks;\n\nnamespace GenerateQR;\n\ninternal static class Program\n{\n    private static Configuration MakeConfiguration()\n    {\n        var config = new Configuration();\n\n        string? envToken = Environment.GetEnvironmentVariable(\"TEST_CONFIGURATION_JWT_TOKEN\");\n        if (string.IsNullOrEmpty(envToken))\n        {\n            config.ClientId = \"Client Id from https://dashboard.aspose.cloud/applications\";\n            config.ClientSecret = \"Client Secret from https://dashboard.aspose.cloud/applications\";\n        }\n        else\n        {\n            config.JwtToken = envToken;\n        }\n\n        return config;\n    }\n\n    private static async Task GenerateQR(IGenerateApi api, string fileName)\n    {\n        await using Stream generated = await api.GenerateAsync(\n                EncodeBarcodeType.QR,\n                \"QR code text\",\n                textLocation: CodeLocation.None,\n                imageFormat: BarcodeImageFormat.Png\n            );\n        await using FileStream stream = File.Create(fileName);\n        await generated.CopyToAsync(stream);\n    }\n\n    public static async Task Main(string[] args)\n    {\n        string fileName = Path.GetFullPath(Path.Join(\n            Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location),\n            \"..\", \"..\", \"..\", \"..\",\n            \"qr.png\"\n        ));\n\n        GenerateApi api = new GenerateApi(MakeConfiguration());\n\n        await GenerateQR(api, fileName);\n        Console.WriteLine($\"File '{fileName}' generated.\");\n    }\n}\n\n```\n\n## Dependencies\n\n- [System.Text.Json](https://www.nuget.org/packages/System.Text.json)\n\n## Licensing\n\nAll Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed under [MIT License](LICENSE).\n\n## Resources\n\n- [**Website**](https://www.aspose.cloud)\n- [**Product Home**](https://products.aspose.cloud/barcode/)\n- [**Documentation**](https://docs.aspose.cloud/barcode/)\n- [**Free Support Forum**](https://forum.aspose.cloud/c/barcode)\n- [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)\n- [**Blog**](https://blog.aspose.cloud/categories/aspose.barcode-cloud-product-family/)\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *\u003chttps://api.aspose.cloud/v4.0\u003e*\n\nClass | Method | HTTP request | Description\n----- | ------ | ------------ | -----------\n*GenerateApi* | [**Generate**](docs/GenerateApi.md#generate) | **GET** /barcode/generate/{barcodeType} | Generate barcode using GET request with parameters in route and query string.\n*GenerateApi* | [**GenerateBody**](docs/GenerateApi.md#generatebody) | **POST** /barcode/generate-body | Generate barcode using POST request with parameters in body in json or xml format.\n*GenerateApi* | [**GenerateMultipart**](docs/GenerateApi.md#generatemultipart) | **POST** /barcode/generate-multipart | Generate barcode using POST request with parameters in multipart form.\n*RecognizeApi* | [**Recognize**](docs/RecognizeApi.md#recognize) | **GET** /barcode/recognize | Recognize barcode from file on server in the Internet using GET requests with parameter in query string. For recognizing files from your hard drive use `recognize-body` or `recognize-multipart` endpoints instead.\n*RecognizeApi* | [**RecognizeBase64**](docs/RecognizeApi.md#recognizebase64) | **POST** /barcode/recognize-body | Recognize barcode from file in request body using POST requests with parameters in body in json or xml format.\n*RecognizeApi* | [**RecognizeMultipart**](docs/RecognizeApi.md#recognizemultipart) | **POST** /barcode/recognize-multipart | Recognize barcode from file in request body using POST requests with parameters in multipart form.\n*ScanApi* | [**Scan**](docs/ScanApi.md#scan) | **GET** /barcode/scan | Scan barcode from file on server in the Internet using GET requests with parameter in query string. For scaning files from your hard drive use `scan-body` or `scan-multipart` endpoints instead.\n*ScanApi* | [**ScanBase64**](docs/ScanApi.md#scanbase64) | **POST** /barcode/scan-body | Scan barcode from file in request body using POST requests with parameter in body in json or xml format.\n*ScanApi* | [**ScanMultipart**](docs/ScanApi.md#scanmultipart) | **POST** /barcode/scan-multipart | Scan barcode from file in request body using POST requests with parameter in multipart form.\n\n## Documentation for Models\n\n- [Model.ApiError](docs/ApiError.md)\n- [Model.ApiErrorResponse](docs/ApiErrorResponse.md)\n- [Model.BarcodeImageFormat](docs/BarcodeImageFormat.md)\n- [Model.BarcodeImageParams](docs/BarcodeImageParams.md)\n- [Model.BarcodeResponse](docs/BarcodeResponse.md)\n- [Model.BarcodeResponseList](docs/BarcodeResponseList.md)\n- [Model.CodeLocation](docs/CodeLocation.md)\n- [Model.DecodeBarcodeType](docs/DecodeBarcodeType.md)\n- [Model.EncodeBarcodeType](docs/EncodeBarcodeType.md)\n- [Model.EncodeData](docs/EncodeData.md)\n- [Model.EncodeDataType](docs/EncodeDataType.md)\n- [Model.GenerateParams](docs/GenerateParams.md)\n- [Model.GraphicsUnit](docs/GraphicsUnit.md)\n- [Model.RecognitionImageKind](docs/RecognitionImageKind.md)\n- [Model.RecognitionMode](docs/RecognitionMode.md)\n- [Model.RecognizeBase64Request](docs/RecognizeBase64Request.md)\n- [Model.RegionPoint](docs/RegionPoint.md)\n- [Model.ScanBase64Request](docs/ScanBase64Request.md)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspose-barcode-cloud%2Faspose-barcode-cloud-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faspose-barcode-cloud%2Faspose-barcode-cloud-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspose-barcode-cloud%2Faspose-barcode-cloud-dotnet/lists"}