Exemplo n.º 1
0
        //restore Array into Pic
        public void RestoreArrayIntoPic()
        {
            MemoryStream MS = new MemoryStream();

            pictureB_ProductImage.Image.Save(MS, pictureB_ProductImage.Image.RawFormat);
            byte[] PicArr = MS.ToArray();
            Pro.UpdateProduct(txtb_ProductID.Text, txtb_Label.Text, Convert.ToInt32(txtb_Quantity.Text), txtb_Price.Text, PicArr, Convert.ToInt32(cmbb_CategoryID.SelectedValue));
        }