Posted on: 1/4/2015 9:54:39 PM | Views : 553

Hi All,
I am using the below code  to retrieve a varbinary image into an image control. Is there a way to flip the images let say 90, 180.
Any control or idea to achieve this.
SqlConnection conn = new SqlConnection(strconnection); SqlDataAdapter sda = new SqlDataAdapter("select Front_Image,Rear_Image from Transactions", conn); DataTable dt = new DataTable(); sda.Fill(dt); foreach (DataRow row in dt.Rows) { //Get the byte array from image file byte[] imgBytes = (byte[])row["Front_Image"]; //If you want convert to a bitmap file TypeConverter tc = TypeDescriptor.GetConverter(typeof(Bitmap)); Bitmap MyBitmap = (Bitmap)tc.ConvertFrom(imgBytes); string imgString = Convert.ToBase64String(imgBytes); //Set the so ...

Go to the complete details ...