title: Storing images in datatable
body: <p>I am trying to store images in <code>datatble</code>  from folder something like below code,I tried this code ,but its not working where I am making mistake </p>
  
  <pre><code>private void ViewR_Load(object sender, EventArgs e)
  {
      String str = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
      string path = str + "\\images\\";
  
      DataTable dt1 = new DataTable();                       
      dt1.Columns.Add("Images", System.Type.GetType("System.Drawing.Bitmap[]"));
  
      if (System.IO.Directory.Exists(path))
      {
           string[] allImg = System.IO.Directory.GetFiles(path);
           foreach (string imgName in allImg)
           {
               Image img = new Bitmap(imgName);
               //row = dt1.NewRow();
               dt1.Rows.Add(img.GetThumbnailImage(350, 350, null, new IntPtr()));
                              img.Dispose();
           }
      }
      ds.Tables[1].Merge(dt1);
  }
  </code></pre>