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

مشاهدة النسخة كاملة : error "Object reference not set to an instance of an object" pls see the code and help me



C# Programming
09-24-2009, 08:02 PM
MemoryStream stream = new MemoryStream(); VisitorPhoto1.Image.Save(stream, System.Drawing.Imaging.ImageFormat.Jpeg);
byte[] pic = stream.ToArray();

error on second line......... pls help me thanks in advance