iOS下载解压缩文件-ZipArchive与文件上传
2016-08-03 16:48
232 查看
1.压缩文件,用途比如QQ的换皮肤。
2.需要获取请求头的数据:
--\r\n
Content-Disposition:form-data;name="";filename=""\r\n
Content-type:文件的MIMEType\r\n
\r\n
文件数据
\r\n
--\r\n
3.MIMEType
png -> image/png
js -> application/javascript
text/txt -> text/plain
son -> application/json
// Create [SSZipArchive createZipFileAtPath: zipPath withContentsOfDirectory: sampleDataPath]; // Unzip [SSZipArchive unzipFileAtPath:zipPath toDestination: unzipPath];
2.需要获取请求头的数据:
--\r\n
Content-Disposition:form-data;name="";filename=""\r\n
Content-type:文件的MIMEType\r\n
\r\n
文件数据
\r\n
--\r\n
3.MIMEType
png -> image/png
js -> application/javascript
text/txt -> text/plain
son -> application/json
相关文章推荐
- iOS开发——网络篇——文件下载(NSMutableData、NSFileHandle、NSOutputStream)和上传、压缩和解压(三方框架ZipArchive),请求头和请求体格式,断点续传Range
- iOS的文件上传与下载
- [iOS AFNetworking框架实现HTTP请求、多文件图片上传下载]
- iOS 文件下载及上传
- iOS开发中文件的上传和下载功能的基本实现
- iOS 实现文件上传下载
- 关于iOS版Citrix Receiver不支持文件上传下载的说明
- iOS开发之结合asp.net webservice实现文件上传下载
- 高级UIKit-09(TCPSocket发送文件、上传和下载) - 回读(IOS)
- iOS 开发之网络——文件上传&文件下载
- iOS开发之结合asp.net webservice实现文件上传下载
- 【IOS学习】http异步文件上传和下载以及进度指示
- iOS开发之结合asp.net webservice实现文件上传下载
- IOS开发之----使用ZipArchive解压缩文件
- iOS 之asi 框架 文件 的上传与下载
- iOS开发之结合asp.net webservice实现文件上传下载
- iOS开发之实现文件上传下载
- iOS实现七牛多图片、文件上传和下载
- iOS开发之结合asp.net webservice实现文件上传下载
- iOS之文件上传、下载(上传)