Advertisement

01.12.2006 at 11:52AM PST, ID: 21694469
[x]
Attachment Details

Web-Service and Compression Problem

Asked by NetworkArchitek in C# Programming Language

Tags: invalid

I have a web service in which I pass in a string which is the string representation of the xml of a DataSet. It is important for me to pass it as a string. This data can be quite large (a few megabytes sometimes) I want to compress it. I set up my web-service and my consumer to use the ICSharpCode.SharpZipLib.

My problem is that the "compressed string" representation contains characters which the web service doesn't like. I get errors like:

System.Xml.XmlException: '', hexadecimal value 0x1C, is an invalid character. Line 6, position 117.
   at System.Xml.XmlScanner.ScanHexEntity()
   at System.Xml.XmlTextReader.ParseBeginTagExpandCharEntities()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlReader.ReadElementString()

Sometimes it is a different character, so obviously this is from the compression algorithm.


How can I send a compressed string to a web-service and then decompress it? I think the code is probably "right" because I am apparently sending a compressed string. I'm not sure what to do, I am using ASCIIEncoding.
 
Start Free Trial
[+][-]01.12.2006 at 01:19PM PST, ID: 15686024

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.12.2006 at 01:20PM PST, ID: 15686030

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.12.2006 at 02:08PM PST, ID: 15686519

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.12.2006 at 02:33PM PST, ID: 15686807

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.12.2006 at 10:16PM PST, ID: 15689318

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.12.2006 at 10:59PM PST, ID: 15689416

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C# Programming Language
Tags: invalid
Sign Up Now!
Solution Provided By: jatinderalagh
Participating Experts: 3
Solution Grade: A
 
 
[+][-]01.12.2006 at 11:08PM PST, ID: 15689438

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.13.2006 at 09:41AM PST, ID: 15693539

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.14.2006 at 11:22AM PST, ID: 15701410

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32