Loadbank(): Showing progress possible?

BlitzMax Forums/BlitzMax Programming/Loadbank(): Showing progress possible?

Grisu(Posted 2010) [#1]
Hi guys!

I'm using the following function to download a file from the internet. Is it possible to show the current progress of this process?



Thanks
Grisu


degac(Posted 2010) [#2]
I dont' know how to 'hack' LoadBank but this is what I use



degac(Posted 2010) [#3]
Ok, I'm hacking something... but I have a problem to retrieve the 'correct' position of the stream, or well, the FULL SIZE of the object to download.

This is your example with a 'real' file.
Below there are some changes, but not fully* working at the moment



This is in bank.bmx


This is in STREAM.bmx



Grisu(Posted 2010) [#4]
Thanks for your help degac.

I don't mess around with bmx core functions.
Have tried to create a single superstrict example of your code. But get a strange error message... :(

[EDIT] deleted source code


degac(Posted 2010) [#5]
You missed a CreateBank
But still remains the problem about the file size...



Grisu(Posted 2010) [#6]
This one uses a workaround function, perhaps someone finds a simpler solution?



[EDIT] Streamsize() doesn't apply here.. :(