FTP it to the remote machine, then do the same thing already posted. You obviously can't do this without having the data located in some form or another on the same computer the MySQL server is running on, how else would the MySQL server get teh data?
Another option might be to upload the file via HTTP if FTP is not an option. THis is what PHPMyAdmin does.