We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Bar codereader

Hi I am Currently building Xamarin Application to work mobile to scan pdf417 barcodes this is a snippet of my code
var photo = await Plugin.Media.CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions() { SaveToAlbum = true, PhotoSize = Plugin.Media.Abstractions.PhotoSize.Small });
if (photo != null)
{
// PhotoImage.Source = ImageSource.FromStream(() => { return photo.GetStream(); });
String DecodeString = “”;
BarCodeReader reader;
//Stream stream = photo.GetStream();
reader = new BarCodeReader(photo.Path,DecodeType.Pdf417);
reader.QualitySettings = QualitySettings.HighPerformance;

                while (reader.Read())
                {
                    BarcodeText.Text += reader.GetCodeText();
                }
                reader.Close();

I have to read the barcode and display it in a string to the user

@ntmasiagwala

Your code looks fine, reader.GetCodeText() shall return the code text.
Moreover, you may set different recognition modes like as:

reader.RecognitionMode = RecognitionMode.MaxBarCodes;

You may get more details at this link: https://docs.aspose.com/barcode/net/improve-barcode-recognition/