Load big BLOB data from MySQL -> progress bar needed
Posted: Thu 11 Aug 2016 08:15
Hello!
I have a MySQL table with all versions of my application (50+MB per record/version/file).
When I want to access the BLOB field in the DB on the server - I have to wait very long time.
That would be ok - but I cannot show any progress and users are closing the update-app because of this.
Is there a way to somehow read blob data with some blocksize (like streams)?
Or is there another solution for that?
/Werner
I have a MySQL table with all versions of my application (50+MB per record/version/file).
When I want to access the BLOB field in the DB on the server - I have to wait very long time.
That would be ok - but I cannot show any progress and users are closing the update-app because of this.
Code: Select all
efDM.q_versionfiles.ParamByName('version_id').AsInteger := version_id;
efDM.q_versionfiles.ParamByName('filename').AsString := fn;
efDM.q_versionfiles.Open; <= this takes ages...
stream := efDM.q_versionfiles.CreateBlobStream(efDM.q_versionfiles.FieldByName('filedata'), bmRead);
Or is there another solution for that?
/Werner