I am trying to build a webserver with some special functions in it for personal use. File transfer actually works fine but with large files > 5mb my program will not respond anymore till the file is "loaded" in the computers memory( and this time the file was only 100mb so if it gets even bigger like > 700mb I think my computer will crash ). I think this is because of bad code but i don't know any other solutions for it so i hope some of you can help me out.
here the piece of code i use to transmit data:
Open App.Path & "\" & page For Binary As #1
entireFile = Space(LOF(1))
Get #1, , entireFile
so actually the file is loaded in 'entirefile' and that variabel is send with winsock to the user connected to it.
So what im asking if someone knows a better solution to my problem.
Greetings War Lord