title: insert image into oracle database with asp.net web forms visual studio 2012
body: <p>how to store image file in oracle database connected with asp.net web forms application (visual studio 2012).
  please be informed that i'm using EF.</p>
  
  <pre><code>myContext db=new myContext();
  public class MyClass
  {
      public int ID { get; set; }
      public string imgName { get; set; }
      public BLOB img { get; set; }
  }
  
  public void storeImage_Click(string imgPath)
  {
      MyClass h = new MyClass();
      h.imgName="somename";
      h.img=imgPath;
      db.MyClass.Add(h);
      db.SaveChanges();
  }
  </code></pre>