Barcode Writer SDK Base64 String Exception

Questions, comments and suggestions concerning VintaSoft Barcode .NET SDK.

Moderator: Alex

Post Reply
sss123mike
Posts: 2
Joined: Fri May 05, 2017 6:37 pm

Barcode Writer SDK Base64 String Exception

Post by sss123mike » Fri May 05, 2017 6:42 pm

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

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Barcode Writer SDK Base64 String Exception

Post by Alex » Fri May 05, 2017 10:08 pm

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

sss123mike
Posts: 2
Joined: Fri May 05, 2017 6:37 pm

Re: Barcode Writer SDK Base64 String Exception

Post by sss123mike » Sat May 06, 2017 3:06 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest