I use the Delphi LoadFromFile function to insert Table1BLOBFIELD.LoadFromFile
(‘C:\xxx.avi’) and the SaveToFile command to retrieve.
This inserting/retrieving is rather timeconsuming (several minutes). It
would be nice if I could show a kind of progressbar (instead of only an
hourglass-shaped cursor).
When using SaveToFile I can perhaps use a timer and check the filesize
(although this doesn’t seem to work without threads). But this is no
solution for LoadFromFile.
Does anyone have a particular solution, a hint,…?
Thanks in advance
I use the Delphi LoadFromFile function to insert Table1BLOBFIELD.LoadFromFile (‘C:\xxx.avi’) and the SaveToFile command
Share
Here a simple example of how to subclass
TFileStreamand how to add anOnProgressevent to it:Although this
OnProgressevent is implemented on the file-side of the process, the actual progress that it represents is the overall process, including database communication.