PC Review


Reply
Thread Tools Rate Thread

Compress dataset sent over a web service

 
 
Dan
Guest
Posts: n/a
 
      28th Feb 2004
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


 
Reply With Quote
 
 
 
 
Cor
Guest
Posts: n/a
 
      29th Feb 2004
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?
>



 
Reply With Quote
 
Dan M
Guest
Posts: n/a
 
      29th Feb 2004
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" <(E-Mail Removed)> wrote in message
news:eRHFOPq$(E-Mail Removed)...
> 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?
> >

>
>



 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      29th Feb 2004
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" <(E-Mail Removed)> wrote in message
> news:eRHFOPq$(E-Mail Removed)...
> > 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?
> > >

> >
> >

>
>



 
Reply With Quote
 
Charlie Smith
Guest
Posts: n/a
 
      1st Mar 2004
"Dan" <(E-Mail Removed)> wrote in message news:<cw70c.86995$(E-Mail Removed)>...
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FILE COMPRESS not by ZIP or Normal windows compress Hamed Windows XP General 17 18th Jan 2007 05:00 AM
Compress Old Files Refuses to Compress =?ISO-8859-1?Q?Ctrl=A4/Alt=A4/Del=A4=AE?= Windows XP General 4 29th Sep 2006 05:31 PM
dataset in a Web Service ThunderMusic Microsoft ASP .NET 1 23rd Nov 2005 04:35 AM
Getting web service dataset into xml John Microsoft VB .NET 11 26th Jun 2004 05:01 PM
How To compress and uncompress DataSet ? Xpelive Microsoft ADO .NET 1 15th Nov 2003 07:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:29 PM.