{"id":2715,"date":"2021-09-27T16:55:49","date_gmt":"2021-09-27T16:55:49","guid":{"rendered":"http:\/\/www.bardecode.com\/newsite\/?p=2715"},"modified":"2021-09-27T16:55:49","modified_gmt":"2021-09-27T16:55:49","slug":"softek-barcode-reader-toolkit-docker-net","status":"publish","type":"post","link":"https:\/\/www.bardecode.com\/newsite\/softek-barcode-reader-toolkit-docker-net\/","title":{"rendered":"Softek Barcode Reader Toolkit with Docker and .Net"},"content":{"rendered":"<p>The Softek Barcode Reader Toolkit can now be used with Docker and .Net with multi-platform support in a single <a href=\"https:\/\/www.nuget.org\/packages\/softekbarcodenetstandard\">NuGet package<\/a>.<\/p>\n<p>Key facts:<\/p>\n<ul>\n<li>.Net Standard 2.0<\/li>\n<li>Includes native DLL files for OSX, Windows (x86 &amp; x64) and Linux (x86 &amp; x64).<\/li>\n<li>Automatically selects correct native DLL at run-time (see below).<\/li>\n<li>Reads barcodes from TIF or JPEG files\/byte arrays or streams.<\/li>\n<\/ul>\n<p>To use the package:<\/p>\n<ol>\n<li>In Visual Studio right click on the project and select &#8220;Manage NuGet Packages&#8221;<\/li>\n<li>Search for &#8220;softekbarcodenetstandard&#8221;<\/li>\n<li>Click on the package and then Install<\/li>\n<\/ol>\n<p>After installation you should be able to add code similar to the following&#8230;<\/p>\n<p>Example code:<\/p>\n<p>Read from a file:<br \/>\nSoftekBarcodeNetStandard.BarcodeReader barcode = new SoftekBarcodeNetStandard.BarcodeReader();<br \/>\nint n = barcode.ScanBarCode(&#8220;somefile.tif&#8221;);<\/p>\n<p>Read from a stream&#8230;<\/p>\n<p>Stream s = Upload.OpenReadStream();<br \/>\nSoftekBarcodeNetStandard.BarcodeReader barcode = new SoftekBarcodeNetStandard.BarcodeReader();<br \/>\nint n = barcode.ScanBarCodeFromStream(s);<\/p>\n<p>Read from a byte array:<\/p>\n<p>SoftekBarcodeNetStandard.BarcodeReader barcode = new SoftekBarcodeNetStandard.BarcodeReader();<br \/>\nint n = barcode.ScanBarCodeFromByteArray(data);<\/p>\n<p>Use of Native DLL Files<\/p>\n<p>Note that the NuGet package includes the following native DLL\/shared object files:<\/p>\n<ul>\n<li>SoftekBarcodeDLL.dll (Windows x86)<\/li>\n<li>SoftekBarcode64DLL.dll (Windows x64)<\/li>\n<li>libbardecode_linux.so (Linux x86)<\/li>\n<li>libbardecode_64linux.so (Linux x64)<\/li>\n<li>libbardecode_osx.dylib (Mac OSX)<\/li>\n<\/ul>\n<p>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.<\/p>\n<p>If you have any questions or need further information please contact nuget@bardecode.com<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &amp; x64) and Linux (x86 &amp; x64). Automatically selects correct native DLL at run-time (see below). Reads barcodes from TIF or &hellip; <\/p>\n","protected":false},"author":1,"featured_media":341,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,203,31],"tags":[],"class_list":["post-2715","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge-base","category-news","category-software-development-kits"],"_links":{"self":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts\/2715"}],"collection":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/comments?post=2715"}],"version-history":[{"count":1,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts\/2715\/revisions"}],"predecessor-version":[{"id":2716,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts\/2715\/revisions\/2716"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/media\/341"}],"wp:attachment":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/media?parent=2715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/categories?post=2715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/tags?post=2715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}