how to package a folder into a file
-
I wrote a tool to upload file to web, but it didnt work with Unicode file. Now I think out a solution to solve that problem is: I will package a folder into a file and then I can upload it. Can we do that with C#? If yes, how can I package a folder into a file?:confused: Who can show me how to do that? Thank you in-advanced!
-
I wrote a tool to upload file to web, but it didnt work with Unicode file. Now I think out a solution to solve that problem is: I will package a folder into a file and then I can upload it. Can we do that with C#? If yes, how can I package a folder into a file?:confused: Who can show me how to do that? Thank you in-advanced!
The only way to do that is to ZIP up the files in the folder. You can then upload the .ZIP file and have the server side unpack it, if need be. But, a better solution would probably be to fix your code that is doing the uploading. What are you using (on both the client and server end) to handle file uploads? If your upload code didn't work with a UniCode file, what do you think is going to happen when your try to upload binary files? BTW, if your using ASP.NET, your question really belongs in the ASP.NET Forum, regardless of the language you wrote it in. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
The only way to do that is to ZIP up the files in the folder. You can then upload the .ZIP file and have the server side unpack it, if need be. But, a better solution would probably be to fix your code that is doing the uploading. What are you using (on both the client and server end) to handle file uploads? If your upload code didn't work with a UniCode file, what do you think is going to happen when your try to upload binary files? BTW, if your using ASP.NET, your question really belongs in the ASP.NET Forum, regardless of the language you wrote it in. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome