title: Send file to gearman worker
body: <p>I'm currently separating our video conversion part of the web page (kinda like youtube where users upload videos and we convert them to flv/mp4) to a different server. I already have the system running with <a href="http://gearman.org/" rel="nofollow">gearman</a> on the same machine. So when a user uploads a video file to server A in gets picked by a gearman worker on the same server A.</p>
  
  <p>Now I moved the worker to server B. So worker on server B needs to access the uploaded file on server A. Currently I use SCP to copy the file from A to B and then process it. This method works but I feel like there should be a more clean way of doing it but I haven't found any information about sending files (or large files) to gearman workers. How would you approach this problem?</p>
  
  <p>Preferably the client would send the video file as part of the command to start a background job, so I don't have to worry where the file actually is from within the worker. That way I can add more conversion servers without to much hassle.</p>
  
  <p>I'm using PHP (with Gearman <a href="http://pecl.php.net/package/gearman" rel="nofollow">extension</a>) for both my webpage and the worker.</p>