المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : compressing bytes



C# Programming
07-20-2009, 04:10 PM
hi I have this code that convert an picture box image in bytes

MemoryStream ms = new MemoryStream();
pictureBox1.Image.Save(ms, ImageFormat.Jpeg);
byte[] data = ms.ToArray();
ms.Close();
MessageBox.Show("image Converted in bytes");

now i want to compress these bytes too according to this code
plz help me