- Miguel Leeuwe
- PowerBuilder
- Thursday, 28 October 2021 07:47 AM UTC
Hi,
I've created a C# DLL which encodes and decodes QR images. You can save as .bmp, .gif, .png, and .jpg. The problem I'm having is that only files with a .PNG extension show correctly on the picture control. If for example I have saved as BMP, I can correctly open and see the image with any windows image application, but not in powerbuilder on the picture control.
Has anyone seen this before? I guess there's something wrong with the generated bmp or with powerbuilder not recognizing it as such.
(In .net, I'm using the zxing nuget package to encode and decode. This is a 4.5.1 32 bit .net framework dll, since we still have customers using windows server 2003m win7 and possibly even win XP).
See the 2 attachments: one is my VS DLL library with the encoding and decoding functions and the other is a small pb sample application made in pb2019 R3 build 2703.
Edited: to avoid dupliction:
Here's the latest version of the PB sample app: https://github.com/mjl38/PB_sample_app_QRCodes
And here's the latest version of my Vstudio .net library (and test window form): https://github.com/mjl38/QRCodes
Let me know if you would like me to zip it all and duplicate it on the several posts here.
TIA, MiguelL
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.