Hi team ,
I have downloaded Aspose using NuGet packages (3.4.1.9004) for VS 2015 (version 18.6.0.0) and it’s reading barcode from uploaded barcode image .
But we have two issues .
Issue 1. It’s only reading Code39 standard and getting error Evaluation limit if we try to Upload other standard like Code128.
Issue 2 : It’s work fine when we upload barcode imagebut not reading when we took photo of the barcode through phone and try to upload that image ?
Kindly help on this , is this license issue or any thing we are missing ?
Below is the code .
if (file.ContentLength > 0)
{
var fileName = Path.GetFileName(file.FileName);
path = Path.Combine(Server.MapPath("~/App_Data"), fileName);
file.SaveAs(path);
}
// Now we try to read the barcode
// Instantiate BarCodeReader object
BarCodeReader reader = new BarCodeReader(path, DecodeType.Code39Standard);
System.Drawing.Image img = System.Drawing.Image.FromFile(path);
System.Diagnostics.Debug.WriteLine("Width:" + img.Width + " - Height:" + img.Height);
try
{
// read Code39 bar code
while (reader.Read())
{
// detect bar code orientation
ViewBag.Title = reader.GetCodeText();
barcode = reader.GetCodeText();
}
reader.Close();
}
Thanks