title: iPhone: How to Embed NSData in XML for Upload to Server?
body: <p>I want to pass data to a server and store the file there in a database as binary data.    </p>
  
  <pre><code>NSData *myData = [NSData dataWithContentsOfFile:pathDoc]; 
  pathDoc = [NSString stringWithFormat:@"&lt;size&gt;%d&lt;/size&gt;&lt;type&gt;%d&lt;/type&gt;&lt;cdate&gt;%@&lt;/cdate&gt;&lt;file&gt;%c&lt;/file&gt;&lt;fname&gt;File&lt;/fname&gt;",fileSizeVal,filetype,creationDate,myData];
  </code></pre>
  
  <p>Any idea about this?</p>
  
  <p>Thanks you,
  Milan</p>