public void Avatar(HttpPostedFile upload) { Stream stream = upload.InputStream; int length = upload.ContentLength; byte[] buffer = new byte[length]; stream.Read(buffer, 0, length); }