Page 1 of 1

Barcode Writer SDK Base64 String Exception

Posted: Fri May 05, 2017 6:42 pm
by sss123mike
Hello.

I have just purchased and downloaded the Barcode Writer SDK.

I have installed, referenced and registered DLL.

I am trying to create a barcode using the exact code from the online documentation:

Code: Select all

' create the barcode writer
Dim barcodeWriter As New BarcodeWriter()

' set barcode writer settings
barcodeWriter.Settings.Barcode = BarcodeType.Code128
barcodeWriter.Settings.Value = "012345abcde"

' get a barcode image
Dim image As Image = barcodeWriter.GetBarcodeAsBitmap()

' save the barcode image to a file
image.Save("imageWihBarcode.png")
When I run the above code I get the exception:
"The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters."

Can anyone help with this?

Thanks in advance.
Mike

Re: Barcode Writer SDK Base64 String Exception

Posted: Fri May 05, 2017 10:08 pm
by Alex
Hello Mike,

You have the licensing problem because you are using wrong reg.code - I think your email client broke your reg.code. Please contact out support at support@vintasoft.com and they will send you reg.data in text file.

Best regards, Alexander

Re: Barcode Writer SDK Base64 String Exception

Posted: Sat May 06, 2017 3:06 pm
by sss123mike
Hi Alex.

Thank you for your quick response.

You were correct, the reg code was wrong. I opened the email in another client and copied it from there.

All sorted now.

Thanks again.

Mike