Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:using': 0.04; 'django.': 0.05; 'binary': 0.13; 'subject:raw': 0.16; 'way"': 0.16; 'case.': 0.16; 'subject:problem': 0.19; 'file,': 0.22; 'header:In-Reply-To:1': 0.22; 'testing': 0.25; 'moving': 0.25; "i'm": 0.27; 'all,': 0.28; '"the': 0.29; 'solved': 0.30; 'thanks': 0.31; 'pointing': 0.32; 'actually': 0.33; 'to:addr:python-list': 0.34; 'test': 0.34; 'charset:us-ascii': 0.36; 'file': 0.36; 'option': 0.37; 'passed': 0.37; 'using': 0.37; 'received:192': 0.38; 'received:org': 0.38; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'subject: ': 0.73; 'subject:; ': 0.91 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: reading zipfile; problem using raw buffer Date: Tue, 26 Jul 2011 11:22:19 -0400 In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: reading zipfile; problem using raw buffer Thread-Index: AcxLlNYLVquiwjNZSLGyqxQeyLncrQABMWBQ References: <08098816-0332-4ae2-a125-35418bac0da2@dp9g2000vbb.googlegroups.com> From: "Sells, Fred" To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1311693743 news.xs4all.nl 23943 [2001:888:2000:d::a6]:47021 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:10337 Thanks all, adding the 'rb' and 'wb' solved that test case. The reason I read the file "the hard way" is that I'm testing why I cannot unzip a buffer passed in a file upload using django. While not actually using a file, pointing out the need for the binary option gave me the clue I needed to upload the file All is good and moving on to the next crisis ;) Fred.