•
•
•
•
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
![]() |
•
•
Join Date: Aug 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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.
Any ideas how to get this working?
Thanks!
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
•
•
Join Date: Aug 2008
Posts: 347
Reputation:
Rep Power: 1
Solved Threads: 30
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
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Http request error when using AJAX. (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: DOM select HTML
- Next Thread: create text field using ajax


Linear Mode