Author: mrwelcam | Posted on: 11/1/2009 6:26:30 PM | Views : 885

Hi, I'm uploading a file from the client to an external server with the following function. My question is how heavy will this be on Our servers RAM. Will this function load the entire file into memeroy or just the 4kb in the buffer.
I was originally looking at placing this operation onto the client via silverlight/flash, however, as authentication is required its a bit of a security concern.
public bool UploadFile(string url, String fileName, Stream fileStream, string fileFormName, string contenttype, NetworkCredential credentials) { try { String postParametersString = getPostParametersString(); string boundary = "----------" + DateTime.Now.Ticks.ToString("x"); _httpRequest = (HttpWebRequest)WebRequest.Create(url + "?" + postParametersString); _httpRequest.CookieContainer = _cookies; _httpRequest.ContentType = ...

Go to the complete details ...