User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 402,793 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,839 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 292 | Replies: 1
Reply
Join Date: Aug 2008
Posts: 1
Reputation: viklund_anders is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
viklund_anders viklund_anders is offline Offline
Newbie Poster

Ajax and gzip

  #1  
33 Days Ago
Hi,

I am trying to get the contents of a gzip file located on the server.
This code only prints the binary content of the file.

var msgUrl = "../messages/"+compressedMessage+".gz";
objXml.open("GET",msgUrl,false);
objXml.send(null);
alert(objXml.responseText);


Any ideas how to get this working?

Thanks!
Last edited by peter_budo : 32 Days Ago at 11:58 am. Reason: Keep It Organized - please use [code] tags
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2008
Posts: 347
Reputation: langsor is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 30
langsor langsor is offline Offline
Posting Whiz

Re: Ajax and gzip

  #2  
31 Days Ago
I haven't worked with gz files before, but I think you can get the contents using PHP methods ... here's a link: http://us.php.net/manual/en/function.readgzfile.php

It probably maters what file-type you have in the zipped format too.

Maybe someone else more knowledgeable will chime in with better advice.

Good luck
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 10:28 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC