title: Rails Paperclip XML POST File
body: <p>I am able to 'POST' to a Rails application (with Paperclip) using XML instead of the standard web form (trying to do it from another Ruby script).  However, I would like to include a binary file.  </p>
  
  <p>Is there any way to include the binary data within an XML tag?  Or can I do something like B64 encode the data on the client and then decode it before it hits the Paperclip plugin?</p>
  
  <p>UPDATE:<br>
  The browser sends a POST with this data (among others):</p>
  
  <pre><code>Content-Disposition: form-data; name="upload[upload]"; filename="foo.jpg" 
  Content-Type: image/jpeg 
  
  ÿØÿà�JFIF��`�`��ÿþ�Created by AccuSoft Corp.ÿÛ�C�... 
  </code></pre>
  
  <p>I'd like to replicate that, but within XML</p>