public void DownloadFile(CruxDB dbObject, DataBucket sesBucket, int docClassId)
 {
     byte[] doc = dbObject.getProjectDocument(docClassId);
     //HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create("http://www.lotbanking.com/Downloads/" + fileName);
     //HttpWebResponse objResponse = (HttpWebResponse)objRequest.GetResponse();
     //int bufferSize = 1;
     //Context.Response.Clear();
     //Context.Response.ClearHeaders();
     //Context.Response.ClearContent();
     //Context.Response.AppendHeader("Content-Disposition:", "attachment; filename=Sample.zip");
     //Context.Response.AppendHeader("Content-Length", objResponse.ContentLength.ToString());
     //Context.Response.ContentType = "application/download";
     //byte[] byteBuffer = new byte[bufferSize + 1];
     //MemoryStream memStrm = new MemoryStream(byteBuffer, true);
     //Stream strm = objRequest.GetResponse().GetResponseStream();
     //byte[] bytes = new byte[bufferSize + 1];
     //while (strm.Read(byteBuffer, 0, byteBuffer.Length) > 0)
     //{
     //    Context.Response.BinaryWrite(memStrm.ToArray());
     //    Context.Response.Flush();
     //}
     //Context.Response.Close();
     //Context.Response.End();
     //memStrm.Close();
     //memStrm.Dispose();
     //strm.Dispose();
 }