1. Khi cần gửi một Bitmap thẳng qua Client, nhất thiết là phải gửi mảng byte[], ta dùng đoạn code sau:
// we have an Image or Bitmap object already, named imageNeedToSend
MemoryStream ms = new MemoryStream();
imageNeedToSend.Save(Stream, System.Drawing.ImageFormat)
the MemoryStream class has a method to return a ByteArray.
ms.ToArray()
Wednesday, June 28, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment