Python论坛  - 讨论区

标题:[python-chinese] 压缩文件在socket如何实现传输

2007年11月30日 星期五 11:02

wf552554 wf552554在163.com
星期五 十一月 30 11:02:59 HKT 2007

在传输一个文件时,为了方便起见,我先把文件压缩成.zip 的文件形式,然后项通过sokect 传输。要怎么实现呢??
目前我要读取普通文件的方式读取了压缩文件的被压缩后的内容(open()).接受方接到压缩后的内容要怎么才能还原?? 
 
 
 
-------------- 涓嬩竴閮ㄥ垎 --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20071130/3e7fede9/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年11月30日 星期五 11:12

littlesea littlesea wzhlittlesea在gmail.com
星期五 十一月 30 11:12:20 HKT 2007

ÅжϽÓÊÜÊÇ·ñÍê³É£¬Íê³Éºó×Ô¶¯½âѹ

ÔÚ07-11-30£¬wf552554 <wf552554在163.com> дµÀ£º
>
> ÔÚ´«ÊäÒ»¸öÎļþʱ£¬ÎªÁË·½±ãÆð¼û£¬ÎÒÏȰÑÎļþѹËõ³É.zip µÄÎļþÐÎʽ£¬È»ºóÏîͨ¹ýsokect ´«Êä¡£ÒªÔõôʵÏÖÄØ£¿£¿
> ĿǰÎÒÒª¶ÁÈ¡ÆÕͨÎļþµÄ·½Ê½¶ÁÈ¡ÁËѹËõÎļþµÄ±»Ñ¹ËõºóµÄÄÚÈÝ£¨open()£©.½ÓÊÜ·½½Óµ½Ñ¹ËõºóµÄÄÚÈÝÒªÔõô²ÅÄÜ»¹Ô­£¿£¿
>
>
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071130/dbb92039/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年11月30日 星期五 11:17

3751 lwm3751在gmail.com
星期五 十一月 30 11:17:44 HKT 2007

直接用zlib不会更方便吗?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20071130/a73f1ada/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号