If am finding the docs on DatabaseFiled. PictureValue to be a little confusing:
http://documentation.xojo.com/index.php/DatabaseField.PictureValue
First it says:
[code]aDatabaseField.PictureValue( Format as String=Picture.FormatPNG,quality as Integer= Picture.QualityDefault ) = newPictureValue
or
PictureValue = aDatabaseField.PictureValue(Format as String=Picture.FormatPNG,quality as Integer= Picture.QualityDefault)
Gets or sets the PictureValue using the specified picture format.
[/code]
Then it also defines it this way:
[code]aDatabaseField.PictureValue = newPictureValue
or
PictureValue = aDatabaseField.PictureValue
Gets or sets the PictureValue.
[/code]
Since all the parameters in the first set have default parameters, is not the second set superfluous ? If that is true then without parameters storing a picture in the DB will automatically convert it to a PNG and retrieving one no matter the format would convert it to PNG regardless of how it was stored…
If The second from was distinct (but how could it be???) I would assume it saves the picture in whatever format it is in and retrieves it that way!
So what do these docs mean?