NetBarcode
NetBarcode copied to clipboard
System.ArgumentNullException: 'Parameter "name" must be not null. (Parameter 'name')'
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!
If I pass false
to showLabel
in the constructor, it works fine.
It is not blocking my use case now, but I think this is a bug.