Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
10
Erster Beitrag:
vor 2 Jahren, 3 Monaten
Letzter Beitrag:
vor 2 Jahren, 3 Monaten
Beteiligte Autoren:
Michael Drechsel, kingdr, Arie

[WX20] Download a file from a WB20 awp site failed

Startbeitrag von Michael Drechsel am 23.02.2016 22:35

Hi,

I try to download a large file (600 MB) from a Windows 2012 IIS.
At the server runs a webdev20 AWP site, which returns the file via "filedisplay".

The problem is, that the download stops at minute 9 or 10. I changed all timeouts in the webdev20 administrator to 2 hours, but it looks like there is a "hidden" timeout.

I can´t find this. Any ideas ?

PS: I tried it several times with Chrome and Firefox. The time is every time different, so it can´t be a timeout.
I looks for me that Webdevs "filedisplay" is not stable for large files ....

Antworten:

Hi

Did you change anything in IIS?

Pls see this link:

https://www.iis.net/configreference/system.applicationhost/sites/site/limits

HTH

King

von kingdr - am 24.02.2016 04:14
Hi King,

if I download the file directly from IIS (shared folder without using webdev) everything works. So it can't be a IIS setting

von Michael Drechsel - am 24.02.2016 05:38
Michael

Would it be possible the user right issue or check Windows Authetication area
in IIS and ws2012 userSettings as Windows Server is very strong protection in between domain users and Administrator? I am sure that you won't let public to access it
as an Admin., right!


Interesting to know thou if you solve it by this or...


King

von kingdr - am 24.02.2016 12:14
Sorry, I meant idletime out limit between domain users/Admin if it exists somewhere
in policy area.

King

von kingdr - am 24.02.2016 13:01
I try, pls see below:

http://wiki.productcart.com/developers/timeout-issues

I did well since wb15 with 4GB file upload/download in AWP and
I don't think it's WB bugs...

HTH

King

von kingdr - am 24.02.2016 13:08
Hi,

after some tests in our company (in LAN) I think the problem is not the IIS, but the new "httpsend" function in windev20.
From 600 MB I got all with Chrome, but only ~300 MB with httpsend.

von Michael Drechsel - am 24.02.2016 15:16
Ok,

I give up. Filedisplay doesn´t work for me stable enough.

So I go back to my first idea and this works well. I built a webservice and cut the file in 4 MB pieces.
Every piece gets a checksum from the webservice. The client compare it and can (if this is wrong) repeate this piece.
If all is fine the client append the piece at the end and so he get step by step the whole file.


The advantages are:
- the user can hold and stop the download at every time
- I have a error correction
- it works perfect in a parallel task, so I can download many files at the same time
- the size of the file and memory use is irrelevant

the disadvantage is, that it is not so fast as the direct download with a browser ....

von Michael Drechsel - am 25.02.2016 07:41
Michael

Quote
that it is not so fast as the direct download with a browser


You are right. I'm using the same solution you describe to upload photos from/to Android devices to a webserver.
I'm thinking of putting both options together: cut the large file is several pieces, download them as a file and bring it all together on the other side.

Compression is also an option, depending on the type of data/file you have. I use that to download data as a sqlite DB file. Which can be compressed up to 80% !! That also 80% less download time!

So finally we should send/receive compressed splitted files to get maximum speed :spos:

von Arie - am 25.02.2016 08:06
Hi Arie,

my files are compressed as zip at serverside. For uploads I compress the files at clientside as 7zip, which has in some cases better compressing results.

>Compression is also an option, depending on the type of data/file you have. I use that to download data as a sqlite DB >file. Which can be compressed up to 80% !! That also 80% less download time!

Interesting ! Can you tell us a little bit more about it ? Im looking for a way to compress my Webservice-Arrays at serverside before serializing it

von Michael Drechsel - am 25.02.2016 08:23
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.