Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to package a folder into a file

how to package a folder into a file

Scheduled Pinned Locked Moved C#
questioncsharphelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gyokusei
    wrote on last edited by
    #1

    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!

    D 1 Reply Last reply
    0
    • G gyokusei

      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!

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      G 1 Reply Last reply
      0
      • D Dave Kreskowiak

        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

        G Offline
        G Offline
        gyokusei
        wrote on last edited by
        #3

        I found it in the ASP.NET forum. Thanks!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups