locked
Whats an alternative to zipping files when you want to move several files in a single unit? RRS feed

  • Question

  • User-1227097466 posted

    I have to move data to a device that does not have a lot of storage space.

    The data is multiple files of different sizes and formats.

    When I zip them, transfer them to the device and unzip them, twice the storage space is required.

    Is there any alternative to this? 

    Friday, September 28, 2018 10:22 AM

All replies

  • User753101303 posted

    Hi,

    Just don't zip them or process them in multiple steps (by folder or by file extension) etc... Not sure if this related to ASP.NET ?

    Friday, September 28, 2018 10:35 AM
  • User-1227097466 posted

    I need to move the files and folders as a single object.

    I need to do this in asp.net

    Friday, September 28, 2018 10:37 AM
  • User753101303 posted

    The size of the zip file plus the size of uncompressed files is bigger than the available space ?

    Do you have a single disk? If not you could likely store the zip file on a disk and extract its content to the target disk.

    The last resort  might be to delete parts of the zip file once you are done with them using maybe something like https://docs.microsoft.com/en-us/dotnet/api/system.io.compression.ziparchiveentry.delete?view=netframework-4.7.2 then ?

    Either on individula files or the zip could contain other zip files so that you can extract/decompress/delete each part of the zip separately ?

    Depending on the disk, usage it might be another action (disk compression or just "buying"' more space especially if this is a VM).

    Friday, September 28, 2018 10:50 AM
  • User-1227097466 posted

    I cant change the size of the storage space. its a device

    Zipping the individual files doesnt change the situation.

    Friday, September 28, 2018 3:23 PM
  • User-474980206 posted

    with windows there is none. you either copy the files one at a time, or bundle (zip, cab, tar, etc) and copy the bundle and unbundle. the closest you can get on windows, is to bundle, but rather than copy the bundle, extract the bundle to the server (this would require file system access.

    if you control the server, you could write a service for that server, that you stream the zip file to over http/sockets, and the service extracts the zip input stream to the file system.

     

     

    Friday, September 28, 2018 7:37 PM
  • User753101303 posted

    Sure ? The idea is that it should allow to delete each zip file once it has been decompressed allowing to reclaim space as you go. You tried ?

    If it still doesn't work we would need the need the big picture. You are uploading a zip file to a web server ?

    Friday, September 28, 2018 7:51 PM