Click here to Skip to main content
15,891,682 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Downloading multiple files without storing them in temp folder runtime.


senario : i want to download multiple files ,which are having unique id of the own and store it as a zip file,according to the files selected without storing in temp folder at runtime.

i tried this way
can any one help me out ,i'm stuck

C#
string[] arrObjIDs = arrOfSelectedObjs[i].Split(new string[] { "~" }, StringSplitOptions.RemoveEmptyEntries);
                       Object[] returnobjects = g.GetDocument(arrObjIDs[0]);
                       string Filename = returnobjects.GetValue(0).ToString();
                       byte[] bdoc = (byte[])returnobjects.GetValue(1);
                       string[] fext = Filename.Split('.');
                       if (fext.Length > 1)
                           casestring = fext[fext.Length - 1];
                       strContentType = GetContentType(casestring);
                       zipFile.AddEntry(Filename, bdoc);
Posted
Updated 15-Mar-12 6:52am
v2
Comments
rahul walake 15-Mar-12 9:16am    
hi Arvind,
You must have to Save the zip file.
aravindmunna 18-Mar-12 4:15am    
i solved it my self

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900