public void Avatar(HttpPostedFile upload) { Stream stream = upload.InputStream; BinaryReader br = new BinaryReader(stream); int length = upload.ContentLength; byte[] buffer = br.ReadBytes(length); }