ive created a web server as my major software project but now need to know how to transfer files. any help would be greatly appreciated.
Printable View
ive created a web server as my major software project but now need to know how to transfer files. any help would be greatly appreciated.
Welcome to the forums!
Here is one method:
http://vbforums.com/showthread.php?t=337424
i need from the server side for images etc.
Can you explain what you mean? Do you want your web server to be able to take HTTP file uploads? - this is something which server side scripts usually do, not web servers.
However, you could use the WebDav HTTP extensions.
no, at the moment my server can handle html text but i want it to be able to send images as well to the browser.
You need to use HTTP content headers. For instance, a html page has a content header that looks like:
For an image, you would use:Quote:
Content-type: text/html
You could replace GIF with the other images formats, of course. I am also making a web server. But mine doesn't use headers either. I'm currently trying to implement sending content headers. Once I get it working, I'll show it to you. :DQuote:
Content-type: image/gif