Can we transfer compressed dataset with Web Service?

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

We can transfer DataSet in Web Service.
It will consume too much resource if the DataSet is large.
I wnat to compressed the DataSet befer transferred,
How can I do that?
 
ad said:
We can transfer DataSet in Web Service.
It will consume too much resource if the DataSet is large.
I wnat to compressed the DataSet befer transferred,
How can I do that?

Well, you could serialise the DataSet, for example to XML, then
compress it (eg using SharpZipLib) then at the other end decompress it
and then deserialise it.
 
Do you really want to use such weakly typed objects in your web service?

Ollie Riches
 
ad said:
How to serialise the DataSet?
Could you give me an example?

See the docs for XmlSerializer for an example of how to serialize an
object - DataSets support serialization in the normal way.
 
Back
Top