Hi there - I am developing a commercial web app with Xojo!
My problem is that I can’t seem to upload large picture files on the MySQL database. The field type is a longblob - which should be able to hold 4gb
It simply doesn’t load until I use a small picture.
I think I could get around this by upload my picture file as a Jpeg - bigger pictures and less file size.
Is there a way to convert in real time a picture to a jpeg (without saving it somewhere)
here’s some code that doesn’t work:
dim p as Picture=source
if rs=nil then
rec = New DatabaseRecord
rec.Column("AssetID")=a
rec.PictureColumn("APImage")=p.FormatJPEG
db.InsertRecord("AssetPhotos",rec)
db.Commit
else
dim pp as Picture
rs.Field("APImage",Picture).PictureValue=p
end if