New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZXing BarcodeWriter to Image not displaying (Xamarin.Forms) #197
Comments
Which platform are you running this code on? does it work on any of them? |
I am having the same issue. Does not work in WinPhone either. I have a PCL project, with code exactly as posted by davidavarez. Windows throws the following error: ...with the following stack trace: Looks to me like something is wrong in the "writer.encode" function that is causing the byte array to be malformed. Thanks. EDIT: (per this post: http://forums.xamarin.com/discussion/28161/barcode-rendering-with-zxing-net-in-my-xamarin-forms-app ) Thanks. |
Using Xamarin.Forms on iOS and Android.
|
I have the same problem, with android. The code not throws any exception but don't show the image. My code is:
|
I am also seeing this issue, apparently the only workaround is to implement a custom interface to get the stream in the right format? Cf. https://forums.xamarin.com/discussion/28161/barcode-rendering-with-zxing-net-in-my-xamarin-forms-app |
Have you tried the latest version? I specifically fixed this for the Forms implementation on Android :) |
I don't think it works on iOS? I don't see an image |
I have a simple solution for those who have had issues displaying a barcode after upgrading ZXing libraries. |
I tried to use a Write from ZXing.Mobile but did not see one.... |
I am having the same problem, seems that the Write() function returns an invalid byte array, I coudn't convert it to an image. I suppose that is not possible to use it in a generic Xamarin Form PCL way, we gonna need to perform it individually for each plataform using dependency injection. |
Hello, I need to save the result generated using |
Using BarcodeWriter from the ZXing.Net.Mobile Nuget package. The code compiles without error does not display the barcode.
The text was updated successfully, but these errors were encountered: