Example #1
0
        protected bool veriTabaniResimParmetreAl(ClassVeriTabaniTemel veriTabani, Image image, String paremetreAdi)
        {
            try
            {
                veriTabani.baglan();

                byte[] foto = cevirImageByteArray(image);
                //tring denemeson = System.Text.Encoding.UTF8.GetString(foto);
                veriTabani.veriTabaniKomut.Parameters.Add(paremetreAdi, System.Data.OleDb.OleDbType.VarBinary, foto.Length).Value = foto;
                //veriTabani.veriParametre.OleDbType = SqlDbType.Image;//(veriTabani.veriParametre);
            }
            catch
            {
                return(false);
            }

            return(true);
        }
Example #2
0
 public bool baglan()
 {
     return(veriTabani.baglan());
 }