Thanks again TheGreatCthulhu
Your logic seems sound, but I'm still at a loss I'm afraid. This is what I have thus far:
How do you suggest I utilise the serialize method to return a type that contains both byte array (of the image) and the DateTime object?Code:[Serializable] public class timeStampedImage { public byte[] byteArray; public DateTime dateTime; } //Main class { NetworkStream stream = client.GetStream(); //Get current time DateTime currentTime = DateTime.Now; timeStampedImage test = new timeStampedImage(); test.byteArray = bytes; //Byte array of image to be sent test.dateTime = currentTime; //Record of current time to be sent Serialize(stream, currentTime); stream.Write(bytes, 0, bytes.Length); }
Many thanks for your help,
bassguru




Reply With Quote
