Greg McGuffey (12/28/2007)
So, it may be that the pictureedit control is updating the image, but that image isn't getting saved (and serialized again) back to the datatable. You might have to take an extra step to get that done.I have read through those posts. I get an conversion error during compile that states that I am unable to convert from the byte[] type to the image type. Not sure how the first post actually works when substituting the null value with the CType function. Also, the whole concept of serializing the data doesn't seem quite appropriate in this situation. The data flows beautifully from the database to the control (not serialized). It is just the reverse that seems to be the issue. I cannot change the image and persist it to the database. The second thread suggest that the data be re-typed at the BO level (?) and serialized. Well, wouldn't I get the same error if I tried to make a bitmap out of a byte[]? The third thread comes across as Martian to me. Sorry.
Any thoughts on what that "extra step" might be? Sure would be nice to save images by simply binding the field to the control...like all other controls (textedit, comboedit, etc.).
Thanks a lot for the help, Greg!
Bill