码迷,mamicode.com
首页 >  
搜索关键字:zipfile    ( 199个结果
压缩文件
ZipFile zip = new ZipFile(); ? ? ? ? ? ? zip.AddFile("c:\\666.txt"); ? ? ? ? ? ? MemoryStream output = new MemoryStream(); ? ? ? ? ? ? zip.Save(output); ? ? ?...
分类:其他好文   时间:2015-10-09 10:31:14    阅读次数:269
轻松python之文件专题-关于zip文件的一些操作
场景: zip文件的操作,包括增删改查 1.zip的创建,并在zip包里面创建一个文件 >>> import zipfile >>> handler=open('temp_zip.zip','w') >>> handler.close () >>> z=zipfile.ZipFile ('c:/Python34/temp_zip.zip','w') >>> z.writestr('hel...
分类:编程语言   时间:2015-09-02 18:57:39    阅读次数:130
java.util.zip.ZipException: error in opening zip file
今天项目升级,出现了很奇葩的问题。在本地和测试环境测试好好的,将项目打包成war(每次都这样打包)然后上传到阿里云服务器,启动tomcat一直报如下错误: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip...
分类:编程语言   时间:2015-08-21 23:23:19    阅读次数:1310
POI批量导出数据
public class FileZip { /**        *         * @param srcfile 文件名数组        * @param zipfile 压缩后文件        */       public static void ZipFiles(File[] srcfile, File zipfile) {           byte[] buf...
分类:其他好文   时间:2015-08-18 19:23:01    阅读次数:82
Android如何快速打出100个渠道apk
测试1分钟900多个包关键思路就是读文件,如图:Python快速打包脚本: 1 #!/usr/bin/env python 2 3 import zipfile 4 5 prefix = 'channel_' 6 channel = 'jyb' 7 8 try: 9 zipped = ...
分类:移动开发   时间:2015-08-13 14:20:27    阅读次数:151
Python 的 zipfile 模块
zipfile.ZipFile(file,mode,compress_type,allowZip64) #创建一个ZipFile对象 ?? ?file : zip文件名 ?? ?mode : ‘r‘读已存在的zip文件,‘w‘新建或覆盖已存在的zip文件,‘a‘附加到现存的 zip文档 ?? ?compr...
分类:编程语言   时间:2015-07-24 21:02:07    阅读次数:142
13.5. zipfile — Work with ZIP archives
13.5. zipfile — Work with ZIP archivesSource code: Lib/zipfile.pyThe ZIP file format is a common archive and compression standard. This module provide...
分类:其他好文   时间:2015-07-10 11:06:57    阅读次数:197
android 5.x system.img 大于2G导致编译otapackage时报错如何处理
当system分区预制过多apk时如果img size超过2G 在make otapackage时会报如下错误  zipfile.LargeZipFile: Zipfile size would require ZIP64 extensions 或 in writestr zinfo.CRC = crc32(bytes) & 0xffffffff # CRC-32 checksu...
分类:移动开发   时间:2015-07-07 21:18:13    阅读次数:498
java加密解压类库
java压缩类库_支持加密解压.zippublic static void unzip(File zipFile, String dest, String passwd) throws ZipException { ZipFile zFile = new ZipFile(zipFile); // ....
分类:编程语言   时间:2015-06-29 14:28:19    阅读次数:143
读写ZIP文件
String zipFile = /D:/+ ".zip";StringOperator.zip(filePath, zipFile);InputStream is = null;OutputStream os = null;BufferedInputStream bis = null;Buffer...
分类:其他好文   时间:2015-06-15 14:21:54    阅读次数:131
199条   上一页 1 ... 14 15 16 17 18 ... 20 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!