如何通过C ++编程压缩XML缓冲区? [英] how to zip an XML buffer through C++ programming ?

查看:49
本文介绍了如何通过C ++编程压缩XML缓冲区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,

我最近的更改使数据以XML格式存储到数据库,这几乎没有什么优势!但是一切都工作正常,除了它的大小,它在将数据存储到数据库时需要很大的尺寸。

My recent changes made the data to store it in XML formats to the db, which has few advantages!. But everything is working fine except its size, it is taking huge size while storing it in DB.

如果我的XML被任何其他工具(如winzip)压缩,它会缩小其大小90%! 

if my XML is compressed by  any other tool like winzip, it reduces its size by 90%! 

所以我希望在我的代码中执行缓冲级别的压缩逻辑,然后将其存储到数据库并在检索时解压缩。

So I would like to do the compression logic in the buffer level in my code before storing it to the DB and decompress it while retrieving it .

我在原生C和C ++中运行的整个代码。 

my entire code in running in native C and C++. 

请提出您的想法。

问候,

Ramesh。

推荐答案

很可能通过使用第三方库(如
7-zip.org)提供的第三方库,与Window的内置zip支持相比,可以实现更好的压缩效果。 和其他人。

It is likely that much better compression can be achieved compared to Window's built-in zip support by using third party libraries such as those available from 7-zip.org and others.


这篇关于如何通过C ++编程压缩XML缓冲区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆