Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

fileupload and memorystream

$
0
0

Hi:

I meet a problem when reconstructing a new memory from fileupload's postfile inputstream, 

like followings:

MemoryStream ms = new MemoryStream(this.fuload.FileBytes);

the main problem is, is the upper code snippet is the deepcopy of fuload's fileBytes; (fuload is a fileupload instance).

and how to clean the fuload.FileBytes, to make sure the ms is not build its stream by call by reference, instead, is the deepcopy

Thanks a lot.


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>