How to post uiimage to soap Srevice in binary formate <p>I want to post uiimage into soap service and input image is into binary formate</p> <pre><code>"&lt;ExpenseDetailReceipt&gt;%@&lt;/ExpenseDetailReceipt&gt;" </code></pre> <p>and send this appdelegate.imgBMeal data</p> <pre><code>appdelegate.imgBMeal=UIImagePNGRepresentation(appdelegate.imgMeal); </code></pre> <p>as image but there is some problem and I get please send data in correct formate </p> <p>please help me how to do this</p>