title: Upload file via HTTP from VBA (WinHTTP)
body: <p>I'm trying to (HTTP) upload a binary file programmatically from within VBA. I intend to put an ASPX page on the server to accept the file and certain additional parameters.</p>
  
  <p>I know there are lots of nice ways to do that (e.g. use web service instead of aspx), but my constraint is that it must run in VBA (in an excel file), and that I cannot install any additional components on the client.</p>
  
  <p>So I guess I'll use WinHTTP, and I've found several examples to post form data, but not to post a binary file. I probably need to base64 the file contents?</p>
  
  <p>So my questions are:</p>
  
  <ul>
  <li>Do I need to do the encoding manually or can I make WinHTTP do that?</li>
  <li>Is there a better utility to use than WinHTTP? (Remember I don't want to install any additional software, it must be shipped with WinXP Pro, Office 2007 or a .NET framework, e.g.)</li>
  <li>Is there a better way to go, e.g. using ASP.NET web services?</li>
  </ul>
  
  <p>Thx, chiccodoro</p>