title: Insert binary data into SQL from c# without a stored procedure
body: <p>Does anyone know whether if its possible to insert binary data into an SQL field from c# without using a stored procedure?</p>
  
  <p>For example - convert a byte array into base64 or something like that and then use a text command like the following...</p>
  
  <pre><code>String.Format("update A set B = {0} where C = D", Convert.ToBase64String(b));
  </code></pre>
  
  <p>where b is a byte array.</p>
  
  <p>Thanks</p>