摘要: 1、通过GPRS从服务器下载ZIP包并存储到设备上。(1) 服务器WS中将ZIP包转换成 byte[]并发送出去关键代码如下://将ZIP包转换成 byte[]并发送出去 public byte[] convertZip2ByteArray() { byte[] buf = new byte[1024]; int bufLength = -1; ByteArrayOutputStream bos... 阅读全文
posted @ 2010-10-08 18:10 quietwalk 阅读(579) 评论(1) 推荐(0) 编辑
摘要: strdFilePath = @"\存储卡\gprstest_all\DataExchange\Received\"; if (!Directory.Exists(strdFilePath)) { Directory.CreateDirectory(strdFilePath); } 阅读全文
posted @ 2010-10-08 14:36 quietwalk 阅读(1514) 评论(0) 推荐(0) 编辑