send file

Blitz3D Forums/Blitz3D Programming/send file

panton(Posted 2008) [#1]
Can anybody tell me, or show me an example for Sending files from the server exe to the client exe.


Matty(Posted 2008) [#2]
I can't give you an example, but I would imagine simply reading the exe file into a bank at the server end, then passing that bank across to the client using the standard TCPIP commands in blitz, although I'm not 100% sure whether you could pass the whole bank to a stream at once or if you would have to break it into smaller sections (depending on the size). Then at the client end as you read the packets put them into a bank then write them out as a file using 'writebytes'.

Hope that is of some help.