How do the server and client communicate? HTTP?
Can the server send the file to the client as a response to a client request?
It will be up to the client code to write the file where it wants it...