Stream st = Request.Files[0].InputStream;
Byte[] buffer = new Byte[st.Length];
st.Read(buffer, 0, buffer.Length);
MemoryStream stream = new MemoryStream(buffer);
Bitmap img = new Bitmap(stream);
int width = img.Width;
int height = img.Height;
stream.Close();
st.Close();
时间: 2024-10-28 11:11:42