title: mapping django models.ImageField into an SQL table
body: <p>i have an image filed in my model and i want to write SQL create table queries myself
  my model filed is this:</p>
  
  <pre><code>pic = models.ImageField(u"initial_picture",blank=True,upload_to="/face")
  </code></pre>
  
  <p>and i wanna use command <code>CREATE TABLE SOME_TABLE_NAME</code> to create my table
  but i don't know what should i use for the field type
  i'v read <a href="https://stackoverflow.com/questions/416881/insert-picture-into-sql-server-2005-image-field-using-only-sql">here</a> that i can use something like this: </p>
  
  <pre><code>Photo varbinary(max) not null
  </code></pre>
  
  <p>but i don't know if it's compatible for django and if it's appropriate for my model
  i also have used <code>pic IMAGE DEFAULT NULL</code> like what i saw <a href="http://www.dreamincode.net/forums/topic/103960-save-and-retrieve-images-with-sql-server/" rel="nofollow noreferrer">here</a> and the result was a varchar(100) field in the database structure</p>
  
  <p>any help will be appriciated
  ;-)</p>
  
  <p>i'v tried both <code>Photo varbinary(max) not null</code> and <code>Photo varchar(max) not null</code>
  the field is showing but when i press save, i get the following error:</p>
  
  <p><code>Attempted access to '\face\sample.gif' denied.</code></p>