FromBinaryメソッドを持つ画像コンポーネントを使用しています。入力ストリームをバイト配列に変換する方法を知りたい
HttpPostedFile file = context.Request.Files[0];
byte[] buffer = new byte[file.ContentLength];
file.InputStream.Read(buffer, 0, file.ContentLength);
ImageElement image = ImageElement.FromBinary(byteArray);
          
                  別の.aspxページにファイルを投稿するにはどうすればよいですか?
                
                
                  
                    —
                    Shivi 2015年
                    
                  
                
              
                  この行はありませんfile.InputStream.Read(buffer、0、file.ContentLength);   入力ストリームからのバイトでバッファを埋めますか?以下の回答で@Wolfwyrdが言及しているように、BinaryReader.ReadBytes(...)を使用する必要があるのはなぜですか?ImageElement.FromBinary(buffer);にならない 問題を解決する?
                
                
                  
                    —
                    Srinidhi Shankar