BarcodeData Property

Description

Gets the content of a barcode in byte array.

Syntax

public byte[] BarcodeData { get; }

Data type

byte[]

Example

try
{
    BarcodeResult[] results = reader.DecodeFile("C:\\test.bmp");
    byte[] byteBarcode;
    for(int i = 0; i < results.Length; ++i)
    {
        BarcodeResult barcode = results[i];
        byteBarcode = barcode.BarcodeData;
    }
}
catch(BarcodeReaderException exp)
{
    Console.WriteLine("Error: {0}, {1}", exp.Code.ToString(), exp.Message);
}

See Also

.NET > Classes > BarcodeReader > DecodeFile
.NET > Classes > BarcodeResult
.NET > Classes > BarcodeReaderException