Happy_davood
چهارشنبه 07 اردیبهشت 1384, 22:01 عصر
سلام
من فایلی رو که کاربر Upload کرده با روش زیر بصورت Stream درآوردم :
CurrentFile = MyHttpFilesCollection[iFilesCount];
System.IO.Stream MyStream = CurrentFile.InputStream;
و بعد انجام یه سری کار بر روی این Stream می خوام تا اون رو بصورت فایل رو Server ذخیره کنم ولی چطوری نمیدونم .
البته قبلاً فایل آپلود شده رو با متد CurrentFile.SaveAs ذخیره می کردم ولی الان که تبدیل به Stream شده نمیدونم چکار باید بکنم .
ممنونم .
من فایلی رو که کاربر Upload کرده با روش زیر بصورت Stream درآوردم :
CurrentFile = MyHttpFilesCollection[iFilesCount];
System.IO.Stream MyStream = CurrentFile.InputStream;
و بعد انجام یه سری کار بر روی این Stream می خوام تا اون رو بصورت فایل رو Server ذخیره کنم ولی چطوری نمیدونم .
البته قبلاً فایل آپلود شده رو با متد CurrentFile.SaveAs ذخیره می کردم ولی الان که تبدیل به Stream شده نمیدونم چکار باید بکنم .
ممنونم .