Re: How to get a byte array from the uploaded file?

  •  04-16-2009, 9:28 AM

    Re: How to get a byte array from the uploaded file?

    Hi all,
     
    I solved the problem
     
    using (Stream uploadedStream = file.OpenStream())
    {

       byte[] theFile = new byte[uploadedStream.Length];
       uploadedStream.Read(theFile, 0, (int)uploadedStream.Length);
    }

    just a mising doc for MvcUploadFile

    Best regards
    Catwiesl
View Complete Thread