Hello,
I need an idea about how to create an application that would allow a client to download files using a webbrowser.
So the client sends a downloadlink like this to my "webserver" :
"http://myPBWebServer/file.zip"
The files would be big, 1-4Gb
I think that I need a PB webserver that can send such a file (or multiple files if possible) in chunks to the client's browser.
Maybe such webserver already exists somewhere ("Atomic Web Server" doesn't work because it doesnt send the data in chunks).
Or maybe it's better to try with SpiderBasic... ?
Heinz
download files from a webserver using downloadlinks
-
- User
- Posts: 19
- Joined: Tue Apr 27, 2010 4:35 pm
- Location: Germany
- the.weavster
- Addict
- Posts: 1576
- Joined: Thu Jul 03, 2003 6:53 pm
- Location: England
Re: download files from a webserver using downloadlinks
I have never tried with a file of that size but, are you saying something like this doesn't work for you?
Code: Select all
<a href="/downloads/file.zip"><img border="0" src="img/downloadbutton.png"></a>
Make everything as simple as possible, but not simpler. ~Albert Einstein
-
- User
- Posts: 19
- Joined: Tue Apr 27, 2010 4:35 pm
- Location: Germany
Re: download files from a webserver using downloadlinks
well, I guess it would work for me - if I had a purebasic webserver that would process this code (with file.zip >1GB)JackWebb wrote:I have never tried with a file of that size but, are you saying something like this doesn't work for you?
Code: Select all
<a href="/downloads/file.zip"><img border="0" src="img/downloadbutton.png"></a>

I think all I need is a webserver,or to be more exact : a kind of filesharing webengine
Of course I could use a 3rd party, fully-fledged webserver like IIS, Apache or what "the.weavster" suggested.
However, I'd prefer to have a self-contained Purebasic application if possible.
And if I have to use a 3rd party webserver then I think I'll go with mongoose... - it's just one executable that I have to start... and I have an option to use it as embedded webserver in my PB app...(http://cesanta.com/libmongoose.shtml) , well at least theoretically because unfortunately I have no idea :
a) how to make a static .lib file that I could link to my windows PB app (I have not idea about C\C++ ...)
b) how I'd work with that .lib once I have linked it to my PB code ... so if somebody knows this: please let me know

Heinz