archive

Creating tar archive with national characters in Java

烈酒焚心 提交于 2019-12-10 11:02:00
问题 Do you know some library/way in Java to generate tar archive with file names in proper windows national codepage ( for example cp1250 ). I tried with Java tar, example code: final TarEntry entry = new TarEntry( files[i] ); String filename = files[i].getPath().replaceAll( baseDir, "" ); entry.setName( new String( filename.getBytes(), "Cp1250" ) ); out.putNextEntry( entry ); ... It doesn't work. National characters are broken where I extract tar in windows. I've also found a strange thing,

How to read file from ZIP archive to memory without extracting it to file first, by using C# .NET 4.5?

北城余情 提交于 2019-12-10 03:46:54
问题 .NET Framework 4.5 added support for ZIP files via classes in System.IO.Compression . Let's say I have .ZIP archive that has sample.xml file in the root. I want to read this file directly from archive to memory stream and then deserialize it to a custom .NET object. What is the best way to do this? 回答1: Adapted from the ZipArchive and XmlSerializer.Deserialize() manual pages. The ZipArchiveEntry class has an Open() method, which returns a stream to the file. string zipPath = @"c:\example

Error: Archive for required library cannot be read or is not a valid ZIP file.

女生的网名这么多〃 提交于 2019-12-10 02:45:03
问题 I am having trouble setting up the build path of my java project. I am currently in a Co-Op IT position so I am somewhat new to all this. My background is mostly in C++ and I am learning java on the fly. I am also somewhat new to Eclipse (Kepler service release 1). I am working on a bug on an existing program and need to get the program to build so I can work on it. When I add all of the external .jar files that I know for a fact are the right ones, I am getting this error on two of them :

Converting a dynamic PHP/mySQL website to an archived HTML version?

£可爱£侵袭症+ 提交于 2019-12-09 23:22:19
问题 I have a PHP/mySQL site that is no longer going to get any new content added. But I'd like to keep what I do have as an archive and keep it online. Ideally I'd like to convert it to a static site so that it no longer requires a database. If anyone else has gone through this process, are there any tools, scripts, or methodologies that can automate this or at least make this easier? I'd want to be able to do things like make sure that all the links still work (so they'd have to somehow be

Creating ZIP archives in Google App Engine ( Java) [closed]

泪湿孤枕 提交于 2019-12-09 07:10:21
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I am trying to clone a template ( folder with nested sub-folders) , replace a few files , ZIP it up and serve it to the user. Can this be done in App Engine since there is no local storage? *** UPDATE**** The difficulty there was to build out a directory structure in memory and

Tar: create archive exclude directories except one

柔情痞子 提交于 2019-12-08 15:11:19
问题 I have some directories with some files dir_archive/somedir1 dir_archive/somedir2 dir_archive/somedir3 dir_archive/mydir dir_archive/mydir/excludedir1 dir_archive/mydir/excludedir2 dir_archive/mydir/excludedir3 dir_archive/mydir/many_other_directories... dir_archive/mydir/my_archive_dir I want create tar(gz) archive dir_archive.tar.gz with all files and directories exclude dir_archive/mydir/excludedir1 dir_archive/mydir/excludedir2 dir_archive/mydir/excludedir3 dir_archive/mydir/many_other

iOS Object Archiving from start to finish [closed]

£可爱£侵袭症+ 提交于 2019-12-08 10:00:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am working on an iOS App that involves saving and retrieving an NSMutableArray containing multiple instances of a single custom object I made. I have seen several guides such as Apple's Documentation I get the gist of how to do it (I think), it seems I have to use archiving since my objects in the array are

PHP Zip Archive sporadically creating multiple files

这一生的挚爱 提交于 2019-12-08 09:46:14
问题 I have a PHP script (running PHP 5.2 on Apache 2.2) that creates a zip archive of files for a user to download. Everything seems to work just fine; the only issue I have is that periodically multiple files will be created before the ZIP archive is successfully finished. Example: archive-name.zip archive-name.zip.a09600 archive-name.zip.b09600 archive-name.zip.c09600 This does not happen every single time; only periodically - the file is still created but sometimes these extra 'files' are left

Iexpress - extraction path

放肆的年华 提交于 2019-12-08 08:15:42
问题 I am going to create a self extracting archive but I have got a problem connecting with the default path of the extraction. I would like to extract my files in the same path as the self-extraction archive program. Unfortunately, the files are extracting in another path (C:\Users\computer\AppData\Temp\IXP000.TMP). Is it possible to set the path? 回答1: I can't find any direct way to do this with IExpress, but there is a trick we can apply. But first I'll point out that this is really easy with

iOS Object Archiving from start to finish [closed]

こ雲淡風輕ζ 提交于 2019-12-08 06:58:28
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am working on an iOS App that involves saving and retrieving an NSMutableArray containing multiple instances of a single custom object I made. I have seen several guides such as Apple's Documentation I get the gist of how to do it (I think), it seems I have to use archiving since my objects in the array are not primitive variables, therefore I have already made my objects NSCoding compliant. However I have