Last post Sep 28, 2018 07:51 PM by PatriceSc
Sep 28, 2018 10:22 AM|Stanley Keynes|LINK
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?
Sep 28, 2018 10:35 AM|PatriceSc|LINK
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 ?
Sep 28, 2018 10:37 AM|Stanley Keynes|LINK
I need to move the files and folders as a single object.
I need to do this in asp.net
Sep 28, 2018 10:50 AM|PatriceSc|LINK
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).
Sep 28, 2018 03:23 PM|Stanley Keynes|LINK
I cant change the size of the storage space. its a device
Zipping the individual files doesnt change the situation.
Sep 28, 2018 07:37 PM|bruce (sqlwork.com)|LINK
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.
Sep 28, 2018 07:51 PM|PatriceSc|LINK
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 ?