Spire.Barcode is a professional barcode library specially designed for .NET developers (C#, VB.NET, ASP.NET, .NET Core) and Java developers (J2SE and J2EE) to generate, read and scan 1D & 2D barcodes.

Tue Sep 22, 2020 11:11 am

Hi,

I get the "Source array was not long enough. Check srcIndex and length, and the array's lower bounds." error in the line below. What should I do?

string[] scaningResult = Spire.Barcode.BarcodeScanner.Scan(outPutPath);

selimozer
 
Posts: 5
Joined: Tue Sep 22, 2020 10:54 am

Wed Sep 23, 2020 3:09 am

Hi,

Thanks for your inquiry.
In order to help us reproduce and solve the issue, could you please offer us your QRCode file?
Thanks for your assistance in advance.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Wed Sep 23, 2020 6:32 am

Hi Amy,
Thanks for your reply.
I'm sending the qr code file.

selimozer
 
Posts: 5
Joined: Tue Sep 22, 2020 10:54 am

Wed Sep 23, 2020 8:12 am

Hi,

Thanks for sharing your QRCode.
I used Spire.BarCode(Hot Fix) Version:4.5.1 to scan your QRCode, but didn't encounter the error "Source array was not long enough. Check srcIndex and length, and the array's lower bounds.". I just got an empty value, I have logged it into our issue tracking system with the ticket SPIREBARCODE-163.Sorry for any inconvenience caused. I will inform you once there is any update.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Wed Oct 14, 2020 6:00 pm

Hi Amy,
Can you send me c# code?

I'm try and my code retorn "Additional information: Source array was not long enough. Check srcIndex and length, and the array's lower bounds." error.

selimozer
 
Posts: 5
Joined: Tue Sep 22, 2020 10:54 am

Wed Oct 14, 2020 6:18 pm

Hi Amy,
I guess the error is license originated. Can you send me a temprorary licance key?

selimozer
 
Posts: 5
Joined: Tue Sep 22, 2020 10:54 am

Thu Oct 15, 2020 2:33 am

Hello,

Thanks for your response.
Here is my test code:
Code: Select all
string[] data = BarcodeScanner.Scan("C:\\1.JPG", BarCodeType.QRCode);

We just sent a temporary license to your email. Please check your emails.
Feel free to contact us if you need any assistance.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Thu Oct 15, 2020 5:22 am

Hi Amy,
Worked after installing the license. Yhank you so much. I will test now.

selimozer
 
Posts: 5
Joined: Tue Sep 22, 2020 10:54 am

Thu Oct 15, 2020 7:57 am

Hello,

You are welcome. Thanks for your feedback.
Welcome to write to us again if you have any issues.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.BarCode