Hi all,
My WebService connects to a database server, client application connects to
the WebService. There is a backup method in WebService backups database and
sends compressed data back to the client app. The client app then generates
a zip file using the compressed data. I tried Xceed's Zip library, it can do
the job well, but its price is kind of expensive. Is there any other
alternative method can compress data in memory?
Best Regards,
Wencheng 7 2685
Wencheng, There is a backup method in WebService backups database and sends compressed data back to the client app. The client app then generates a zip file using the compressed data. Is there any other alternative method can compress data in memory?
I'm not aware of any ready-made compression utilities in .NET 1.1, but if
you are targeting .NET 2.0, then you might wish too look at the new
System.IO.Compression namespace. This is an alternative to the zip library
you have tried.
However, you might also wish to look at .NET's cryptography classes, as
encrypting data also (usually) compresses it implicitly. If this is an
option for you, then take a look at the classes in the
System.Security.Cryptography namespace.
--
Regards,
Mr. Jani Järvinen
C# MVP
Helsinki, Finland ja***@removethis.dystopia.fi http://www.saunalahti.fi/janij/
Take a look at #ziplib from http://www.icsharpcode.net/OpenSourc...b/Default.aspx
Brendan
"Wencheng Magiya" wrote: Hi all,
My WebService connects to a database server, client application connects to the WebService. There is a backup method in WebService backups database and sends compressed data back to the client app. The client app then generates a zip file using the compressed data. I tried Xceed's Zip library, it can do the job well, but its price is kind of expensive. Is there any other alternative method can compress data in memory?
Best Regards, Wencheng
Thanks Jani, I will try .NET 2.0!
"Jani J?vinen [MVP]" <ja***@removethis.dystopia.fi> wrote in message
news:ui**************@TK2MSFTNGP12.phx.gbl... Wencheng,
There is a backup method in WebService backups database and sends compressed data back to the client app. The client app then generates a zip file using the compressed data. Is there any other alternative method can compress data in memory?
I'm not aware of any ready-made compression utilities in .NET 1.1, but if you are targeting .NET 2.0, then you might wish too look at the new System.IO.Compression namespace. This is an alternative to the zip library you have tried.
However, you might also wish to look at .NET's cryptography classes, as encrypting data also (usually) compresses it implicitly. If this is an option for you, then take a look at the classes in the System.Security.Cryptography namespace.
-- Regards,
Mr. Jani J?vinen C# MVP Helsinki, Finland ja***@removethis.dystopia.fi http://www.saunalahti.fi/janij/
Brendan, SharpZipLib is a good library, but I really need streaming
compression. Thanks anyway.
"Brendan Grant" <gr****@NOSPAMdahat.com> wrote in message
news:B1**********************************@microsof t.com... Take a look at #ziplib from http://www.icsharpcode.net/OpenSourc...b/Default.aspx
Brendan
"Wencheng Magiya" wrote:
Hi all,
My WebService connects to a database server, client application connects to the WebService. There is a backup method in WebService backups database and sends compressed data back to the client app. The client app then generates a zip file using the compressed data. I tried Xceed's Zip library, it can do the job well, but its price is kind of expensive. Is there any other alternative method can compress data in memory?
Best Regards, Wencheng
Wencheng Magiya <ac*******@sneakemail.com> wrote: Brendan, SharpZipLib is a good library, but I really need streaming compression. Thanks anyway.
You can do streaming compression with SharpZipLib. You can use
DeflaterOutputStream/InflaterInputStream, or
GZipInputStream/GZipOutputStream.
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Hello
It can be done using SharpZipLib (I did something similar with it).
Aleksandar
"Wencheng Magiya" <ac*******@sneakemail.com> wrote in message
news:O0**************@TK2MSFTNGP10.phx.gbl... Brendan, SharpZipLib is a good library, but I really need streaming compression. Thanks anyway.
"Brendan Grant" <gr****@NOSPAMdahat.com> wrote in message news:B1**********************************@microsof t.com... Take a look at #ziplib from http://www.icsharpcode.net/OpenSourc...b/Default.aspx
Brendan
"Wencheng Magiya" wrote:
Hi all,
My WebService connects to a database server, client application connects to the WebService. There is a backup method in WebService backups database and sends compressed data back to the client app. The client app then generates a zip file using the compressed data. I tried Xceed's Zip library, it can do the job well, but its price is kind of expensive. Is there any other alternative method can compress data in memory?
Best Regards, Wencheng
I will give it a try. Thanks Jon and Aleksandar.
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om... Wencheng Magiya <ac*******@sneakemail.com> wrote: Brendan, SharpZipLib is a good library, but I really need streaming compression. Thanks anyway.
You can do streaming compression with SharpZipLib. You can use DeflaterOutputStream/InflaterInputStream, or GZipInputStream/GZipOutputStream.
-- Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tony |
last post by:
Hello,
Any assistance would be appreciated:
As the subject suggests I am trying to gunzip files using the
Compress::Zlib module. The following is basically the code that I am
working with:
...
|
by: ad |
last post by:
I want to send a DataSet to WebService, but the DataSet if too huge(there
about 50000 records, and 50 fields every record).
My solution is
1.save the DataSet as XML file,
2.zip the XML file.
3....
|
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...
|
by: Richard Bailey |
last post by:
Hi. I've got a problem that is totally baffling me. Its also a very
simple one. Basically the following code :
<WebMethod()> _
Public Function HelloWorld() As String
Return "Hello" & Chr(13)...
|
by: Jose L. Velazquez |
last post by:
Hi all,
I have made a webservice that returns an XML, but sometimes the connection
is so slow and there is a lot of data to be returned. I would like to know if
it is possible to send this data...
|
by: Champika Nirosh |
last post by:
Hi,
I have two machine where I needed to have a extended TCP/IP protocol to make
the link between the two machines
Mean,I need to write a application that compress every data the machine send...
|
by: Adriano |
last post by:
Can anyone recommend a simple way to compress/decomress a String in .NET 1.1 ?
I have a random string of 70 characters, the output from a DES3 encryption, and I wish to reduce the lengh of it,
...
|
by: minhchieu |
last post by:
Hi everyone,
I'm working with webservice on Net 2.0. I have a mysql database whose size is about 200MB. I want to make a copy of this database and send it to client through webservice in XML format....
|
by: zgh1970 |
last post by:
Hi, Friends,
default DB2 compression library.
I am wondering if this option will have any new restriction on RESTORE
in the following.
(Can I used that backup imsage for restore at the...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |