NetBarcode icon indicating copy to clipboard operation
NetBarcode copied to clipboard

System.ArgumentNullException: 'Parameter "name" must be not null. (Parameter 'name')'

Open joost00719 opened this issue 9 months ago • 1 comments

I am trying to generate an image using the NetBarcode library. However I get a ArgumentNullException. My code looks like this:

    var bc = new NetBarcode.Barcode(code, NetBarcode.Type.EAN13, true);
    var b64 = bc.GetBase64Image();

Am I doing something wrong, or is there an error in the library? I am running this in Blazor (server side). .NET version 7.0

Thanks in advance!

image

joost00719 avatar Sep 06 '23 14:09 joost00719