bardecode.com
barcode reading software
  • Home
  • Download
  • Purchase
  • SDK Licensing
  • Pricing
    • Windows SDK Price List
    • Windows SDK with PDF Extension Price List
    • Linux SDK Price List
    • Linux SDK with PDF Extension Price List
    • PDF Extension For Windows Price List
    • Multi-Platform Toolkit for .NET Price List
    • BardecodeFiler Desktop Only Price List
    • BardecodeFiler Windows Service Price List
    • DOS Command Prompt Barcode Tool Price List
    • Terms and Conditions
    • Refund Policy
  • Products
    • Softek Barcode Reader Toolkit for Windows
    • Softek Barcode Reader Toolkit for Linux
    • BardecodeFiler Desktop App
    • BardecodeFiler Windows Service
    • Windows DOS Command Prompt Tool
    • Multi-platform barcode reader toolkit for .NET
    • Aquaforest’s Autobahn DX
  • Knowledge Base
    • Documentation
    • Specifications
  • News
  • Contact
    • About Us
    • Terms and Conditions
    • Resellers
    • Links
Select Page ...

News

Softek Barcode Reader Toolkit with Docker and .Net

admin September 27, 2021 Knowledge Base, News, Software Development Kits

The Softek Barcode Reader Toolkit can now be used with Docker and .Net with multi-platform support in a single NuGet package.

Key facts:

  • .Net Standard 2.0
  • Includes native DLL files for OSX, Windows (x86 & x64) and Linux (x86 & x64).
  • Automatically selects correct native DLL at run-time (see below).
  • Reads barcodes from TIF or JPEG files/byte arrays or streams.

To use the package:

  1. In Visual Studio right click on the project and select “Manage NuGet Packages”
  2. Search for “softekbarcodenetstandard”
  3. Click on the package and then Install

After installation you should be able to add code similar to the following…

Example code:

Read from a file:
SoftekBarcodeNetStandard.BarcodeReader barcode = new SoftekBarcodeNetStandard.BarcodeReader();
int n = barcode.ScanBarCode(“somefile.tif”);

Read from a stream…

Stream s = Upload.OpenReadStream();
SoftekBarcodeNetStandard.BarcodeReader barcode = new SoftekBarcodeNetStandard.BarcodeReader();
int n = barcode.ScanBarCodeFromStream(s);

Read from a byte array:

SoftekBarcodeNetStandard.BarcodeReader barcode = new SoftekBarcodeNetStandard.BarcodeReader();
int n = barcode.ScanBarCodeFromByteArray(data);

Use of Native DLL Files

Note that the NuGet package includes the following native DLL/shared object files:

  • SoftekBarcodeDLL.dll (Windows x86)
  • SoftekBarcode64DLL.dll (Windows x64)
  • libbardecode_linux.so (Linux x86)
  • libbardecode_64linux.so (Linux x64)
  • libbardecode_osx.dylib (Mac OSX)

These files are automatically copied to the output folder when the project is built. At run-time the SoftekBarcodeNetStandard DLL seamlessly loads functions from the appropriate native DLL/shared object file.

If you have any questions or need further information please contact nuget@bardecode.com

 

 

 

← How to scan a barcode from a .Net stream
Handling PDF files with Docker →
admin

  • Copyright © 2023 Softek Software Ltd. All Rights Reserved