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.

Thu Jun 14, 2018 6:19 am

Hi there

I'm using the following code to read the barcode from the image.

string[] datas = BarcodeScanner.Scan("image1.png");

Are there a way how to specify the location from where the image gets scanned? If I use the following:

string[] datas = BarcodeScanner.Scan(@"C:\image1.png"); then I receive an exception, Wrong filename passed.

Thanks for the assistance.

Kind Regards
Jaco

Boschter
 
Posts: 4
Joined: Thu Jun 14, 2018 6:10 am

Thu Jun 14, 2018 7:38 am

Hello,

Thank you for your post.
We do support scanning the image that is in the specified location. You need to make sure that the path you specified is valid and accessible. Also, the image is indeed there.
If the issue still troubles you, please share the image file as well as the exception details to help us look into it.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Fri Jun 22, 2018 9:05 am

Hi Jane

Thanks for the feedback. Do you know where I'm going wrong in the code as I'm receiving the same error message (Wrong filename passed) scanning from a specific location:

string[] datas = BarcodeScanner.Scan(@"C:\image1.png");

Thanks

Boschter
 
Posts: 4
Joined: Thu Jun 14, 2018 6:10 am

Fri Jun 22, 2018 9:47 am

Hello Boschter,

Thank you for your reply.
Please send the image file to us(support@e-iceblue.com) for further investigation.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Mon Jun 25, 2018 6:37 am

Hi Jane

My apologies, I had the wrong image file format in the path. All good.

Thanks for the assistance.

Kind Regards

Boschter
 
Posts: 4
Joined: Thu Jun 14, 2018 6:10 am

Mon Jun 25, 2018 8:12 am

Hello Boschter,

Glad to hear that you have found the cause.
Just feel free to contact us if you need any help.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.BarCode

cron