473,387 Members | 1,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem viewing compressed(zip) XML in browser(IE)

I received a huge compressed-xml file from server and want to display
that in bowser (IE). I believe it's doable by just manipulating
Response object header. The error I get is "xml document must have top
level element". I could open this compressed xml in winzip. So
compressing part looks good. It's well formmed XML so the error realted
to tag is not making sense to me.

Here is my ASP page code>>>>>>...

' this class method takes file ..compresses it and send it back as
binary array(binay[])
' so result variable has content of type binay[]

MyObjectname.GetZippedXml fileName, result
Response.Clear
Response.ContentType = "text/xml"
Response.AddHeader "Content-Encoding", "gzip"
Response.BinaryWrite result

When I put content of "result" variable in file and viewed it in
winzip, it showed expected result. It means "result" varaible has valid
compressed xml coming from GetZippedXml method. According to me issue
is somewhere in setting Response object header. Is there any tweak to
work with binarywrite and response object?

Aug 25 '06 #1
0 1214

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Stephen Harris | last post by:
I downloaded: Windows Binaries PHP 5.0.4 zip package - 31 Mar 2005 md5: fff10991a8e6f3b36ee567eb236ae3f4 This is the current BETA release of version 5.0 of the MySQL database server....
2
by: Alessandra | last post by:
Hi all, I am trying to build a pop-up into a Web page. The pop-up should open when clicking a button. It works fine on Mozilla and Opera, but Internet Explorer refuses to open the pop-up. How...
3
by: Chris Leonard | last post by:
Hi. I've copied some code from a book which will enable me to make a layer around a page, my aim is to do something a little more complex but this I thought would get me started. Anyway, I've...
1
by: Dan | last post by:
Hi, I was wondering if anyone could come up with a cross browser image transition that I could use... I have already made one that works in IE but i know it doesn't work in Mozilla Firefox. ...
10
by: jaxent | last post by:
Does anyone know why IE gives the error "'document.myForm.dummy' is null or not an object" on the following page? Firefox does what I expect, creates a text box and writes "hello" in it. <html>...
1
by: amit | last post by:
Hi all, I'm totally new to 3rd party cookies! 1)would one please tell me what they are? 2)how to make IE to detect them? 3)how can I trick IE or FF not to see them? (if possible!)
2
by: bienwell | last post by:
Hi all, I have a problem with the program in ASP.NET. I have a web page that let users change their passwords with a regularexpressionvalidator that validates against the new password (8...
18
by: Diogenes | last post by:
Several articles I read recently regarding the demise of Netscape Navigator stated that Firefox had managed to get a 16% market share and that IE still has over 80% of the eyeballs. Yet my...
10
by: Robert Huff | last post by:
Can someone offer suggestions why, on the same server (Apache 2.2.8), this works <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html lang="en-US"> <head> <link rel=stylesheet...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.