Hi Cerebrus,

Thanks for your help . . .

Actually, I don't want to really save the file on the server and I was
confused how to get the stream without doing this.  However, one of
your links has enlightened me on how to do this.  The code below is
what I need:

        HttpPostedFile myFile = FileUpload1.PostedFile;
        int nFileLen = myFile.ContentLength;
        byte[] myData = new byte[nFileLen];
        myFile.InputStream.Read(myData, 0, nFileLen);

All I want to do is get the byte array of the file in question and
then load it into the database.  The above code will get the byte
array and I can do the rest.  I just wasn't aware of how to do this
but now I know thanks to you. . .

Thanks so much for your help,

Pete




On Feb 8, 1:10 am, Cerebrus <[email protected]> wrote:
> I have a feeling that these articles might be helpful to you:
>
> http://www.codeproject.com/KB/aspnet/fileupload.aspxhttp://www.aspcode.net/File-uploading-howto-part-3.aspx

Reply via email to