472,958 Members | 2,271 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Compress dataset sent over a web service

Dan
Hi,

I pass datasets back and forth between client app and web services (hosted
on iis 5). When written to xml file these datasets can be 500kb+. From a
bandwitdth meter it seems this amount it tripled to about 1500kb for total
traffic to send or receive these datasets thru the webservice. The files
can be zipped down about 99% with Winzip. Should I be looking at zipping
the dataset in code, sending the stream (via byte array) and reconstituting
into dataset on the receiving end? Any other preferred way to compress
this data?

Thanks
Nov 20 '05 #1
4 6597
Cor
Hi Dan,

How are you using those datasets on the clientside.
I asume it is not a webservice you are talking about, but how do you use it
than?
Cor

I pass datasets back and forth between client app and web services (hosted
on iis 5). When written to xml file these datasets can be 500kb+. From a bandwitdth meter it seems this amount it tripled to about 1500kb for total
traffic to send or receive these datasets thru the webservice. The files
can be zipped down about 99% with Winzip. Should I be looking at zipping
the dataset in code, sending the stream (via byte array) and reconstituting into dataset on the receiving end? Any other preferred way to compress
this data?

Nov 20 '05 #2
The client side is a regular VB.Net Windows Forms app. The large datasets
brought from the Webservice to the client app usually end up in a datagrid -
where they may be edited and sent back (using HasChanges so getting back
isn't an issue). From my client app I am sending back a large audit log in
a dataset periodically.

"Cor" <no*@non.com> wrote in message
news:eR**************@TK2MSFTNGP10.phx.gbl...
Hi Dan,

How are you using those datasets on the clientside.
I asume it is not a webservice you are talking about, but how do you use it than?
Cor

I pass datasets back and forth between client app and web services (hosted on iis 5). When written to xml file these datasets can be 500kb+. From
a
bandwitdth meter it seems this amount it tripled to about 1500kb for

total traffic to send or receive these datasets thru the webservice. The files can be zipped down about 99% with Winzip. Should I be looking at zipping the dataset in code, sending the stream (via byte array) and

reconstituting
into dataset on the receiving end? Any other preferred way to compress
this data?


Nov 20 '05 #3
Cor
Hi Dan,

A way to make it smaller that I use is deleting all the empty items which
are made by default.
(Than there must be of course be reasonable amount of empty items).

You have to check per item when it comes from the database on the
dbnull.value for that.
(Creating a new table before you do the writeXML)
When you read it back the item when it not exist is "Is Nothing".

Another way is not sending the schema, I do not know if you do that

It depends also on the use on the other clientside if it are usable ways of
course.

However maybe you can use it

Cor
The client side is a regular VB.Net Windows Forms app. The large datasets
brought from the Webservice to the client app usually end up in a datagrid - where they may be edited and sent back (using HasChanges so getting back
isn't an issue). From my client app I am sending back a large audit log in a dataset periodically.

"Cor" <no*@non.com> wrote in message
news:eR**************@TK2MSFTNGP10.phx.gbl...
Hi Dan,

How are you using those datasets on the clientside.
I asume it is not a webservice you are talking about, but how do you use

it
than?
Cor

I pass datasets back and forth between client app and web services (hosted on iis 5). When written to xml file these datasets can be 500kb+. From
a
bandwitdth meter it seems this amount it tripled to about 1500kb for

total traffic to send or receive these datasets thru the webservice. The files can be zipped down about 99% with Winzip. Should I be looking at zipping the dataset in code, sending the stream (via byte array) and

reconstituting
into dataset on the receiving end? Any other preferred way to compress this data?



Nov 20 '05 #4
"Dan" <no**********@sorrynospamwanted.com> wrote in message news:<cw*******************@twister.nyroc.rr.com>. ..
Hi,

I pass datasets back and forth between client app and web services (hosted


Dan,

I am using a winforms app to consume datasets from a set of web
services over the internet. One of the things we discovered is that
we are way ahead to make several calls for smaller datasets instead of
one large one (we started out transfering a lot of data that we didn't
need or use and refined it down from there).

That said, there are some really good third party tools out there to
compress data streams on the fly, I tested three of them and settled
on the Xceed tool as the one that meets our need the best.

Charlie
Nov 20 '05 #5

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

Similar topics

4
by: geilen | last post by:
I'm trying to use a dataset returned from a web service in an unmanaged C++ (MFC) client. The dataset is returned as a BSTR, and I'm having trouble reading the BSTR into an XML document for...
2
by: ad | last post by:
I used a dataset to produce a xml file. I want to upload the xml file to server by web service. The xml file is to big(about 4M). How can I compress a file in .NET?
1
by: JIM.H. | last post by:
Hello, Here is part of my code to retrieve some data from FoxPro and populate DataGrid. It works fine. What is the best and easiest way to import data from Dataset to a table in SQL Server. '...
1
by: ad | last post by:
I used a dataset to produce a xml file. I want to upload the xml file to server by web service. The xml file is to big(about 4M). How can I compress a file in .NET?
2
by: ad | last post by:
I used a dataset to produce a xml file. I want to upload the xml file to server by web service. The xml file is to big(about 4M). How can I compress a file in .NET?
12
by: Whoever | last post by:
Hi, I'm trying to return an XmlDocument or XmlNode converted from a typed dataset. public XmlNode whatever() { MyTypedDataSet ds = new MyTypedDataSet(); return new XmlDataDocument(ds); }
6
by: James | last post by:
I am writing a web service for a classic ASP application. I need to consume an ADO recordset and then send it to another web service for processing. I found an MSDN ariticle telling how to do this...
1
by: Evgeny.Br | last post by:
Hi All, I use .NET 2.0. I experience huge performance problem retrieving dataset from web service. The dataset volume returned from WS is about 5-7 megabyte, it's take too long.
15
by: Joseph Geretz | last post by:
I'm a bit puzzled by the current recommendation not to send Datasets or Datatables between application tiers. http://support.microsoft.com/kb/306134 ...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.