#region Create Thumbnail // Create a thumbnail in byte array format from the image encoded in the passed byte array. // (RESIZE an image in a byte[] variable.) public static byte[] CreateThumbnail(byte[] PassedImage, int LargestSide, int Height, int Width) { byte[] ReturnedThumbnail; using (System.IO.MemoryStream StartMemoryStream = new System.IO.MemoryStream(), NewMemoryStream = new System.IO.MemoryStream()) { // write the string to the stream StartMemoryStream.Write(PassedImage, 0, PassedImage.Length); // create the start Bitmap from the MemoryStream that contains the image System.Drawing.Bitmap startBitmap = new System.Drawing.Bitmap(...