08-04-2022, 09:57 PM
(This post was last modified: 08-04-2022, 09:57 PM by Alexandre Machado.)
Good day to you too! :-)
Silent download?
I think you are mixing upload and download. Download means that the user can download the image to his own computer and save it into a local folder.
If you want to save it into a blob field you need to upload the image (from the browser to the server), and that won't popup any dialog ever.
In order to save it anywhere you just need to fill the OnPngImageUploaded event.
That event will trigger when the method UploadPngImage() is called and the second parameter (aImage) is a TPngImage object which contains the image uplodated.
You can take this TPngImage and do whatever you want with it (do not free it, though), including saving to a file or to a stream.
Does it make sense?
Silent download?
I think you are mixing upload and download. Download means that the user can download the image to his own computer and save it into a local folder.
If you want to save it into a blob field you need to upload the image (from the browser to the server), and that won't popup any dialog ever.
In order to save it anywhere you just need to fill the OnPngImageUploaded event.
That event will trigger when the method UploadPngImage() is called and the second parameter (aImage) is a TPngImage object which contains the image uplodated.
You can take this TPngImage and do whatever you want with it (do not free it, though), including saving to a file or to a stream.
Does it make sense?