为解决C/S结构下客户端文档文件的共享问题,采用XML技术将不同类型文件转化为XML字符串统一存入数据库,读取时只需从数据库中读出XML字符并将其恢复为原文件即可。各客户端可对数据进行存取和修改,从而实现了客户端数据的共享操作。操作均在客户端完成,可以充分利用资源,提高系统性能,同时把文件统一存入数据库,简化了基于数据库应用开发的复杂度。本方案在国土资源部土地整理中心的土地整理项目审批系统中成功运用,解决了多种数据的统一管理问题。
Data is now getting more and more various and complex along with the rapid development of network technique. How to store various data efficiently becomes a focus in network and database domains. The C/S structure application based on database often shares data between every client. Some of the data are stored as files, such as Word documents, Excel documents, pictures and so on. In this paper we tried to store data files in database with the XML technique. By this means, data were efficiently shared between every client, and the application was successful.