public static byte[] ResizeImageFromByteArray(int MaxSideSize, Byte[] byteArrayIn) { byte[] byteArray = null; // really make this an error gif MemoryStream ms = new MemoryStream(byteArrayIn); byteArray = ResizeImageFromStream(MaxSideSize, ms); return byteArray; }