download files from a webserver using downloadlinks

Just starting out? Need help? Post your questions and find answers here.
spacewalker
User
User
Posts: 19
Joined: Tue Apr 27, 2010 4:35 pm
Location: Germany

download files from a webserver using downloadlinks

Post by spacewalker »

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
User avatar
JackWebb
Enthusiast
Enthusiast
Posts: 109
Joined: Wed Dec 16, 2009 1:42 pm
Location: Tampa Florida

Re: download files from a webserver using downloadlinks

Post by JackWebb »

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
spacewalker
User
User
Posts: 19
Joined: Tue Apr 27, 2010 4:35 pm
Location: Germany

Re: download files from a webserver using downloadlinks

Post by spacewalker »

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>
well, I guess it would work for me - if I had a purebasic webserver that would process this code (with file.zip >1GB) :-)

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
Post Reply