Upload BLOB and progress bar

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
aparvis
Posts: 3
Joined: Mon 22 Nov 2010 10:11

Upload BLOB and progress bar

Post by aparvis » Mon 02 Feb 2015 07:40

Hi

I need to store a large file in BLOB column (10MB and more). ODAC demo shows how to upload file using ParamByName('').AsOraBlob.LoadFromFile. Uploading takes time so is there a way to get upload progreaa information during this process? I'd like to show progress bar informing user how many bytes have been already uploaded.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Upload BLOB and progress bar

Post by AlexP » Tue 03 Feb 2015 13:18

Hello,

There is no such functionality.

P.S. After loading with the LoadFromFile method, sending to the server will be a long-time operation on big data.

opylypcz
Posts: 8
Joined: Fri 06 Feb 2015 09:45

Re: Upload BLOB and progress bar

Post by opylypcz » Fri 06 Feb 2015 11:38

Hello,

does it means that there is a chance to get progress information using .LoadFromStream method ?

regards
Alex

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Upload BLOB and progress bar

Post by AlexP » Fri 06 Feb 2015 12:30

If you have a Source Edition, we can show you where to add necessary changes to solve the issue.

opylypcz
Posts: 8
Joined: Fri 06 Feb 2015 09:45

Re: Upload BLOB and progress bar

Post by opylypcz » Mon 09 Feb 2015 14:02

We are planning to buy "source edition" license, thank you.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Upload BLOB and progress bar

Post by AlexP » Tue 10 Feb 2015 09:37

You can edit the LoadFromStream/SaveToStream method to call the event in a loop, that will display the progress percentage of file loading.

Post Reply