Display progress when inserting a large blob

Forum related to Firebird

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
Antti Kurenniemi
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 06.02.2009, 07:58

Display progress when inserting a large blob

Post by Antti Kurenniemi »

Hi all.

I have an app where I need to upload files into FB database, and I'd like to be able to display a progress bar while doing so. There's no middle-tier, it's plain Client/Server, so it should be pretty much the progress of the insert query.

...and yes, I'd like to be able to show progress of download (select) as well.

This is using Delphi 2007 and Firebird 1.5.

Any ideas welcome.
fcodebue
Junior Boarder
Junior Boarder
Posts: 32
Joined: 05.04.2008, 16:02
Contact:

Post by fcodebue »

mmm

first upgrade to firebird 2.1.1
second you upgrade/download from a LAN or WAN (internet)?
third how do you make upload/download?
Codebue Fabio
P-Soft - http://www.p-soft.biz
Firebird La Comunità Italiana - http://www.firebirdsql.it
GestionaleOpen - http://www.gestionaleopen.org
Antti Kurenniemi
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 06.02.2009, 07:58

Post by Antti Kurenniemi »

> first upgrade to firebird 2.1.1

No, we'll be sticking with 1.5 for quite a while still. Too large a user base to update right now.


> second you upgrade/download from a LAN or WAN (internet)?

Both. We use the embedded FB and the client/server stuff.


> third how do you make upload/download?

It's just SQL in Delphi, insert into MyBlobTable(blobfield) values... . Typically we read from a file (stream) into the field parameter.

We're not yet using Zeoslib in production, just looking for an alternative to IBO. In IBO, there is an event in the query component to get upload (insert) or download (select) progress as bytes, and it also returns the total bytes, so it's easy enough to calculate and display a progress bar for larger files. So I'm looking for something similar in Zeoslib...?
fcodebue
Junior Boarder
Junior Boarder
Posts: 32
Joined: 05.04.2008, 16:02
Contact:

Post by fcodebue »

There's no this kind of features in zeosLib... but you can always write it ;)

It's a very nice feature...
Codebue Fabio
P-Soft - http://www.p-soft.biz
Firebird La Comunità Italiana - http://www.firebirdsql.it
GestionaleOpen - http://www.gestionaleopen.org
Post Reply