J
Jennifer Mathews
I realize I can use
Dim hpf As HttpPostedFile
hpf.SaveAs("c:\whereever\filename.xxx) to save a file.
But I need to pass the hpf.InputStream to a class and save the file from there.
So all I do is need to pass a System.IO.Stream to it with hpf.InputStream .
Once that is passed, how do I know how to save contents of hpf.InputStream ?
Do I do a Binary Write or a regular Text Write?
Thanks
Dim hpf As HttpPostedFile
hpf.SaveAs("c:\whereever\filename.xxx) to save a file.
But I need to pass the hpf.InputStream to a class and save the file from there.
So all I do is need to pass a System.IO.Stream to it with hpf.InputStream .
Once that is passed, how do I know how to save contents of hpf.InputStream ?
Do I do a Binary Write or a regular Text Write?
Thanks