private void button2_Click(object sender, EventArgs e)
        {
            JobInfo info = new JobInfo();

            info.JobId  = "9999";
            info.PrInfo = "This is changed text";
            info.Logo   = null;
            PrInfoDal dal    = new PrInfoDal();
            bool      status = dal.UpdateData(info);

            MessageBox.Show(status.ToString());
        }
        private void button1_Click(object sender, EventArgs e)
        {
            JobInfo info = new JobInfo();

            info.JobId = "9999";

            byte[]       ar    = null;
            string       fname = @"C:\Users\TRG\Pictures\pexels-photo-853168.jpeg";
            FileStream   fs    = new FileStream(fname, FileMode.Open, FileAccess.Read);
            BinaryReader br    = new BinaryReader(fs);

            long b = new FileInfo(fname).Length;

            ar = br.ReadBytes((int)b);

            info.Logo   = ar;
            info.PrInfo = "This is sample image";

            PrInfoDal dal = new PrInfoDal();

            dal.InsertData(info);
        }