I use a Windows 8 computer for development, and I created a form that brings data from SQL, among the tables there is a "Photos" table that have a FileStream field with a PNG or BMP image (BMP is only there for at first I thought it might have been an issue with png support in windows 7, as I read some threads about it, in the end we are going to only use pngs). In my form I retrieve the photo as needed and change the PictureVal of an image object to whatever is the value in the cursor's photo field. This works perfectly in Window 8 or 8.1 (did not test in 10 yet) but it does not work in Windows 7, for Windows 7 I created an horrible work-around that creates a temporary file and set the Picture of the image object to this created file. The question is: Is there any change that I can make in Windows 7 in order to make this thing work using PictureVal directly as in Windows 8? I seem to recall that this issue was discussed here, but I might be wrong.
TIA
[PS]
Interestingly enough, I just remembered we still have one Windows XP computer so I tried the program in there and PNGs do not work, same as in Windows 7, but BMPs DO work!
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges