473,659 Members | 2,632 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can we transfer compressed dataset with Web Service?

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?
Nov 17 '05 #1
5 2242
ad <fl****@wfes.tc c.edu.tw> wrote:
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.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #2
This might help too:
http://www.eggheadcafe.com/articles/20031219.asp

--
HTH,
Rakesh Rajan
MVP, MCSD
http://www.msmvps.com/rakeshrajan/

"ad" wrote:
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?

Nov 17 '05 #3
Do you really want to use such weakly typed objects in your web service?

Ollie Riches
"ad" <fl****@wfes.tc c.edu.tw> wrote in message
news:uc******** *****@tk2msftng p13.phx.gbl...
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?

Nov 17 '05 #4
ad
Thanks,
How to serialise the DataSet?
Could you give me an example?

"Jon Skeet [C# MVP]" <sk***@pobox.co m>
???????:MP***** *************** ****@msnews.mic rosoft.com...
ad <fl****@wfes.tc c.edu.tw> wrote:
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.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 17 '05 #5
ad <fl****@wfes.tc c.edu.tw> wrote:
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.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #6

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

Similar topics

5
3228
by: PerryG | last post by:
We have a .NET 1.1 client which is sending a gzipped soap request using HttpWebRequest to an Apache server. The Apache server is using a the 'mod_deflate' server to decompress the incoming message, and to also compress the response (GZIP). The mod_deflate filter requires the 'Content-Length' header contained within the incoming request to specify the number of UNCOMPRESSED bytes being sent and not the actual bytes of the body of the...
0
1397
by: Sanjay | last post by:
I have a question whose answer will help me save a lot of time in investigation and implementation. Becuase we have a mix of platforms (Windows/Unix etc) in our environment I would like to implement a web service using XML/SOAP (assuming SOAP is also implemented in other languages like Perl/Java etc) that returns a large dataset (20 or 30 or even 100 megs) that the client can save to a file at his end for futher automated processing. ...
6
3094
by: ad | last post by:
I have a compressed file in client. How could we send this compressed file (.zip) to server by web service?
10
1628
by: ad | last post by:
I want to use WebServer to receive a DataSet from Client with internet. The DataSet is some bigger, there are 50 fields and about 50000 rows in it. Is it OK to do so? Will DotFrameWork or IIS compress the tream when transferring?
3
2601
by: Joseph Geretz | last post by:
I'm working on an file transfer gateway using WSE with DIME for file attachments. Our goal is to replace our direct file repository access (via windows network folder sharre) with the Web Service gateway for security purposes. As it stands now, all workstations have direct read-write access to the file repository share. The Web Service gateway will secure this for us. While the web service gateway is more secure, it doesn't perform...
2
2818
by: Anthony Malt | last post by:
Hi, my server has a database table. I read this table on the server into a dataset and my client retrieves it through a webservice. No changes on the client and server happen. What's the best way to keep the data in sync? I want to avoid that I transfer the entire dataset all the time. Is there a way just to send/receive the changes?
11
2440
by: E.T. Grey | last post by:
Hi, I have an interesting problem. I have a (LARGE) set of historical data that I want to keep on a central server, as several separate files. I want a client process to be able to request the data in a specific file by specifying the file name, start date/time and end date/time. The files are in binary format, to conserve space on the server (as well as to increase processing time). The data in each file can be quite large, covering...
0
827
by: Hari | last post by:
Hi all, I have written a web service which accepts data from multiple clients and saves the data for future processing. The size of the data that is received by the web method depends on the client consuming the service. I read in an article that for transfering large volume of data to web
0
1499
by: nithathomas | last post by:
Hi all, Please help me to load archive dataset back into the DB2 table: The archive dataset is in the form of a GDG which is created in the REORG job which has a delete condition. The DB2 tablespace which i have mentioned is a compressed one so i assume that the GDG contains compressed data. If i view the GDG can see junk values in it for some fields..... Could any one please help me to load this GDG back to the DB2 table?
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8751
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4338
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.