Peter,

I'm doing the following with a file that contains a downloaded webbpage,
gzip compressed:

      ' Open received file as GZipStream
      gzFile = new GZipStream
      gzFile.Open(file, false)
      
      i = gzFile.Error()
      if i <> GZip.Z_OK then
        s = gzFile.ErrorString()
        
        msgbox "A GZip Error occured" + EndOfLine + EndOfLine + str(i) + ":
" + s
      else
        
        ' uncompress
        s = ""
        do
          s = s + gzFile.Read(10000)
        loop until gzFile.EOF
        gzFile.Close
        gzFile = nil
        file.Delete

       end if

Up to 2007r1 I get the uncompressed data in string s. Since 2007r2 and later
I get a "Stream Error" -2, i.e. the error happens at gzFile.Open. This is on
the Mac (PPC) only, and it doesn't matter if I compile Mach-O or Carbon.

Roger



> From: "Peter E. Barck" <[EMAIL PROTECTED]>
> Reply-To: REALbasic NUG <[email protected]>
> Date: Tue, 8 May 2007 09:05:32 -0400
> To: REALbasic NUG <[email protected]>
> Subject: Re: GZIP Plugin not working in RB2007r2 for Mac
> 
> Norman Palardy wrote:
> 
>> On 7-May-07, at 7:56 PM, Roger Meier wrote:
>> 
>>>  On the  Mac The GZIP plugin works up to RB2007r1 but not r2. Has
>>>  anyone else
>>>  noticed this?
>>>  This problem only seems to be affecting the Mac version, not the PC
>>>  version.
>>>  It works fine on r2 for Windows.
>> 
>> Peculiar it would work in R1 and not R2.
>> 
>> That said, the source code is included for anyone that wants / needs
>> to fix it.
>> 
>> It's my plugin and I have not used it in 3+ years and really don't
>> have time to figure out what's not working in R2.
>> 
>> I think I'll just yank it from my web site.
> 
>    I am using Norman's latest version (Creation date 10/14/2006). It
> is working correctly for me ever since it was released. This includes
> Rb2007r2  and all the r3 Beta releases.
> 
> Thanks Norman
> -- 
>     Peter
> 
>      TI PowerBook G4, 1GHz, 1GB RAM, OSX 10.3.9, RB2007r2 Pro
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> 
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to