This browser uses HTTP/1.0. It doesn't send an Accept-Encoding
header, thus doesn't request compressed content from a server.
Opera 3.5 does not yet understand compressed content.
I have worked on compression-decompression of data in one of my
earlier projects. Let me share my experience/observations. It might
prove useful for others also.
We can compress-decompress the data by following two ways.
1. Server compresses - browser decompresses:
We can set some server configuration parameters because of which
server sends compressed text data to browser and browser decompresses
it before passing it to flash player. All handled by server and
browser; no need to change application/UI code to do this.
Not all servers(or their versions) support this.
Browsers with HTTP/1.1 support this
2. Server side code compresses - Flash code decompresses
Here, we write some code to compress data at server side and when swf
receives that compressed data we decompress it before parsing.
There are different types of algorithms available for compression -
decompression. We have to make a choice based on following
Compression-decompression rate VS. time required to compress-
decompress
Also, lot of free code libraries written in Java, PHP, actionscript
etc available on net to do this task.
Check following url. It has java code to compress an xml and
actionscript code to decompress it.
http://fgpwiki.corewatch.net/index.php/LZ77_Compression_for_XML_files
Hope this helps.
- Mahesh Kokadwar
On Oct 29, 5:48 pm, "Nagesh Dudam - Clarion, India"
> > On 10/26/07, *Nagesh Dudam - Clarion, India*
> > <nagesh.du...@clariontechnologies.co.in
> > <mailto:nagesh.du...@clariontechnologies.co.in>> wrote:
>
> > Thanks Abdul...
>
> > I got the idea now.... and we are using ASP as a server side
> > scripting. I will check out for the code to uncompress the GZip
> > file data using ASP... and let you know..
>
> > Thanks a lot Abdul.. I will get back to you soon...
>
> > - Nagesh D
>
> > Abdul Qabiz wrote:
> >> Dude, don't access gzip file directly from HTTPService. Rather
> >> use a php (or server-side script) that would return the gzip
> >> content, specify the Content-Encoding: gzip in response-headers,
> >> means before you start sending the content to client you set the
> >> headers, one of the headers should Content-Encoding: gzip
>
> >> What is your server-side environment?
>
> >> -abdul
>
> >> On 10/26/07, *Nagesh Dudam - Clarion, India* <
> >> nagesh.du...@clariontechnologies.co.in
> >> <mailto:nagesh.du...@clariontechnologies.co.in>> wrote:
>
> >> yes my application will be running in a browser.
>
> >> Also where to set the right content-encoding in the
> >> response-headers...??? Abdul, can you please elaborate
> >> this....please....
>
> >> I am using
>
> >> <mx:HTTPService id="myId"
> >> url="*myGZippedData.GZ*"
>
> >> method="POST" useProxy="false"
> >> fault="myFaultHandler(event)"
> >> result="getGZippedData(event)">
>
> >> </mx:HTTPService>
>
> >> This will send the request and after returning back..
>
> >> How can get the uncompressed data....say into the
> >> ArrayCollection or any datatype....
>
> >> please tell me...
>
> >> Thanks & waiting for your reply....
> >> Nagesh D.
>
> >> Abdul Qabiz wrote:
> >>> If your application is running in browser, gzipped content
> >>> would be decompressed by browser. You have to just set the
> >>> right content-encoding in the response-headers...
>
> >>> URLLoader uses Browser's API for all HTTP stuff...
>
> >>> Are you using any other API to load gzip content?
>
> >>> -abdul
>
> >>> On 10/26/07, *Nagesh Dudam - Clarion, India* <
> >>> nagesh.du...@clariontechnologies.co.in
> >>> <mailto:nagesh.du...@clariontechnologies.co.in>> wrote:
>
> >>> Hello Friends,
>
> >>> I want to decompress the GZIP compressed xml file. I
> >>> have a big XML and its size is too big, and now its
> >>> compressed using GZIP, and I want to decompress it and
> >>> get the data.
>
> >>> I want to do this using Flex/AS. Can I get the code i.e.
> >>> Action Script code for decompressing the GZIP file.??
> >>> Please provide me if any one found.
>
> >>> I found some links:
>
> >>> http://codeazur.com.br/lab/fzip/
> >>> http://www.gzip.org/algorithm.txt
> >>> http://weblogs.macromedia.com/mchotin/archives/2004/11/enabling_gzip_...
> >>> <http://weblogs.macromedia.com/mchotin/archives/2004/11/enabling_gzip_...>
>
> >>> This suits the problem :
> >>> http://board.flashkit.com/board/archive/index.php/t-715335.html
> >>> <http://board.flashkit.com/board/archive/index.php/t-715335.html>
>
> >>> Waiting for you reply.....
>
> >>> Thank You.
>
> >>> Regards,
> >>> Nagesh D.
>
> >>> --
> >>> This message has been scanned for viruses and
> >>> dangerous content by *MailScanner*
> >>> <http://www.mailscanner.info/>, and is
> >>> believed to be clean.
>
> >>> --
> >>> -abdul
> >>> ---------------------------------------
> >>> http://abdulqabiz.com/blog/
> >>> ---------------------------------------
>
> >>> --
> >>> This message has been scanned for viruses and
> >>> dangerous content by *MailScanner*
> >>> <http://www.mailscanner.info/>, and is
> >>> believed to be clean.
>
> >> --
> >> This message has been scanned for viruses and
> >> dangerous content by *MailScanner*
> >> <http://www.mailscanner.info/>, and is
> >> believed to be clean.
>
> >> --
> >> -abdul
> >> ---------------------------------------
> >> http://abdulqabiz.com/blog/
> >> ---------------------------------------
>
> >> --
> >> This message has been scanned for viruses and
> >> dangerous content by *MailScanner*
> >> <http://www.mailscanner.info/>, and is
> >> believed to be clean.
>
> > --
> > This message has been scanned for viruses and
> > dangerous content by *MailScanner* <http://www.mailscanner.info/>,
> > and is
> > believed to be clean.
>
> > --
> > -abdul
> > ---------------------------------------
> >http://abdulqabiz.com/blog/
> > ---------------------------------------
>
> > --
> > This message has been scanned for viruses and
> > dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> > believed to be clean.
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.- Hide quoted text -
>
> - Show quoted text -