CN101546326A - System and method for capacity-reduction and backup of file - Google Patents

System and method for capacity-reduction and backup of file Download PDF

Info

Publication number
CN101546326A
CN101546326A CN200810300694A CN200810300694A CN101546326A CN 101546326 A CN101546326 A CN 101546326A CN 200810300694 A CN200810300694 A CN 200810300694A CN 200810300694 A CN200810300694 A CN 200810300694A CN 101546326 A CN101546326 A CN 101546326A
Authority
CN
China
Prior art keywords
bar code
file
content
module
database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200810300694A
Other languages
Chinese (zh)
Inventor
常春明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN200810300694A priority Critical patent/CN101546326A/en
Publication of CN101546326A publication Critical patent/CN101546326A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method for capacity-reduction and backup of a file. The method comprises the following steps: acquiring the content of a file which needs the capacity-reduction and backup from a database; selecting a proper graph bar code type according to the content of the file; reading the size of a space capable of being contained by the selected graph bar code; according to the read size of the space of the selected graph bar code, splitting the content of the file into a plurality of parts which can be contained by the selected graph bar code; respectively converting the split content into binary system codes and then respectively converting the binary system codes into corresponding graph bar codes; according to the sequence of generating the graph bar codes, writing running numbers at the last position of each graph bar code; and storing the graph bar codes into the database. In addition, the invention also provides a system for the capacity-reduction and backup of the file.

Description

File capacity reducing standby system and method
Technical field
The present invention relates to a kind of file capacity reducing standby system and method.
Background technology
When file was backed up, the compressibility problem of file was the importance that operating personnel consider.The backup of file not only will be considered the size that takies of hard drive space, also will consider the recovery extent after safety of files and the file destroyed simultaneously.Wherein, the size that takies of hard drive space is the emphasis that operating personnel consider when file backup.
At present, our employed File Compress software all is to think deeply solution on stored in file format, promptly comes the form of convert file with space-efficient form.For the smaller file layout that itself takes up room, this method compression effectiveness is not clearly; For some bigger file layouts that takes up room, the compressibility of this method promptly can be compressed the space about 25% about 25%.But along with the electronization of office operation, the file that occurs often taking than large space need back up, and 25% compressibility can not satisfy the demand of modern's work and life far away.
Summary of the invention
In view of above content, be necessary to provide a kind of file capacity reducing standby system, the content of file can be converted to corresponding figure bar code and back up, significantly reduced the shared space of backup file.
In view of above content, be necessary to provide a kind of file capacity reducing backup method, the content of file can be converted to corresponding figure bar code and back up, significantly reduced the shared space of backup file.
A kind of file capacity reducing standby system comprises main frame and the database that links to each other with this main frame, and this main frame comprises: acquisition module is used for obtaining the content that need carry out the file that capacity reducing backs up from this database; Select module, be used for type according to the suitable figure bar code of the content choice of described file; Read module is used to read the space size that selected figure bar code can be held; Split module, be used for space size, the content of the file that obtained is split into the part that several can be held by selected figure bar code according to the figure bar code that is read; Modular converter is used for converting the content after splitting to binary code respectively, more described binary code is converted to corresponding figure bar code respectively; Writing module is used for writing serial number in the rearmost position of each figure bar code successively according to the sequencing that described figure bar code produces; And preserve module, be used for described figure bar code is saved to this database.
A kind of file capacity reducing backup method, this method comprise the steps: to obtain the content of the file that need carry out the capacity reducing backup from this database; Type according to the suitable figure bar code of the content choice of described file; Read the space size that selected figure bar code can be held; According to the space size of the figure bar code that is read, the content of the file that obtained is split into the part that several can be held by selected figure bar code; Convert the content after splitting to binary code respectively, more described binary code is converted to corresponding figure bar code respectively; The sequencing that produces according to described figure bar code writes serial number in the rearmost position of each figure bar code successively; And described figure bar code is saved in this database.
Compared to prior art, file capacity reducing standby system provided by the present invention and method, the content of file can be converted to corresponding figure bar code and back up, the space size reduction that makes backup file has significantly reduced the shared space of backup file more than 50%.
Description of drawings
Fig. 1 is the hardware structure figure of file capacity reducing standby system of the present invention preferred embodiment.
Fig. 2 is the functional block diagram of main frame among Fig. 1.
Fig. 3 is the process flow diagram of file capacity reducing backup method of the present invention preferred embodiment.
Embodiment
As shown in Figure 1, be the system architecture diagram of file capacity reducing standby system of the present invention preferred embodiment.This system mainly comprises main frame 1, database 2, display 3, keyboard 4 and mouse 5.This main frame 1 is used for obtaining the content of the file that needs to carry out the capacity reducing backup in the database 2, converts the content of file to several corresponding figure bar code.This database 2 links to each other with this main frame 1, is used to store the file that carries out the capacity reducing backup, and the figure bar code after the storage conversion.Described display 3, keyboard 4 and mouse 5 link to each other with main frame 1 respectively, are used for converting in the content with file the input and output of figure bar code process relevant information.
As shown in Figure 2, be the functional block diagram of main frame 1 among Fig. 1.Described main frame 1 comprises acquisition module 10, selection module 12, read module 14, splits module 16, modular converter 18, writing module 20, encrypting module 22 and preserves module 24.
Described acquisition module 10 is used for obtaining from database 2 content of the file that need carry out the capacity reducing backup.The content of described file includes, but not limited to picture, literal and sound.
Described selection module 12 is used for the type according to the suitable figure bar code of the content choice of described file.The type of described figure bar code includes, but not limited to bar code, two-dimensional bar code and dimensional bar code.Described bar code claims linear bar code again, being often referred to those (generally is horizontal direction in a direction, then do not express any information in vertical direction) bar code of expressing information is bar code, as: the bar code in the bar code on the extensive stock of often seeing, registered mail and the Express Mail Service.Described two-dimensional bar code is the bar code of the chequered with black and white graphic recording data symbol information that (on the two-dimensional directional) distributes on the plane according to certain rules with certain specific geometric figure, therefore two-dimensional bar can express a large amount of information in horizontal and vertical two orientation while expressing information in very little area.Described dimensional bar code is meant and develops on the basis of two-dimensional bar code, can be in the three dimensions bar code of expressing information simultaneously, and it can hold than two-dimensional bar code more information.When the content of the file of required capacity reducing backup is picture (shared space is smaller), select one dimension figure bar code; When the content of the file of required capacity reducing backup is a large amount of literal (shared space is bigger), select the X-Y scheme bar code; When the content of the file of required capacity reducing backup is sound (shared space is very big), can select multidimensional figure bar code.
Described read module 14 is used to read the space size that selected figure bar code can be held.The space that bar code can hold is very little, can only hold 6 bytes usually.But 1850 capitalizations of two-dimensional bar code outfit as many as or 2710 numerals or 1108 bytes, or more than 500 Chinese character are higher approximately tens times than common bar code information capacity.
Described fractionation module 16 is used for the space size according to the figure bar code that is read, and the content of the file that obtained is split into the part that several can be held by selected figure bar code.For example: if the content of the file that obtained is 5000 bytes, institute reads to such an extent that the space size that can hold of figure bar code is 1108 bytes, and then the content of this document need be split into 4 1108 bytes partly and one 568 byte part.
Described modular converter 18 is used for converting the content after splitting to binary code respectively, more described binary code is converted to corresponding figure bar code respectively.For example: when selected barcode types is two-dimensional bar code, figure bar code after the described conversion is a matrix form figure bar code, this matrix form figure bar code is formed with the form of matrix, on matrix respective element position, represent binary one with " point ", with " sky " expression binary zero, by the code that rearranges of " point " and " sky ".The order of this conversion is changed according to splitting hereinafter the sequencing of part content.The compare space size of original content of matrix form graphic bar code space size after the conversion significantly reduces, for example: if size is arranged is that the file of 26000 bytes includes only literal, after selected figure bar code is two-dimensional bar code, after through modular converter 18 conversions, the byte of the matrix form figure bar code that produces is total up to about 5000 bytes, and compressibility is about 80%; If it is that the file of 26000 bytes comprises literal and picture that size is arranged, after selected figure bar code is two-dimensional bar code, after through modular converter 18 conversions, the byte of the matrix form figure bar code of generation is total up to about 13000 bytes, and compressibility is about 50%.
Said write module 20 is used for writing serial number in the rearmost position of each figure bar code successively according to the sequencing that described figure bar code produces.When writing module 20 write serial number in the rearmost position of each figure bar code, this serial number can be presented in the name of each figure bar code.Described serial number can be represented with arabic numeral, for example: if the name of the file of this capacity reducing backup is " document ", then the name of the figure bar code that produces at first is " document 1 ", the name of the second figure bar code that produces is " document 2 ", the name of the 3rd figure bar code that produces is " document 3 ", and the like.
Described encrypting module 22 is used for Crypted password to all figure bar codes being set, and according to set Crypted password all figure bar codes is carried out encipherment protection.
Described preservation module 24 is used for described figure bar code of carrying out behind the encipherment protection is saved to database 2.
As shown in Figure 3, be the process flow diagram of file capacity reducing backup method of the present invention preferred embodiment.At first, step S10, acquisition module 10 obtain the content of the file that need carry out the capacity reducing backup.The content of described file includes, but not limited to picture, literal and sound.
Step S12 selects the type of module 12 according to the suitable figure bar code of the content choice of described file.The type of described figure bar code includes, but not limited to bar code, two-dimensional bar code and dimensional bar code.When the content of the file of required capacity reducing backup is picture (shared space is smaller), select one dimension figure bar code; When the content of the file of required capacity reducing backup is a large amount of literal (shared space is bigger), select the X-Y scheme bar code; When the content of the file of required capacity reducing backup is sound (shared space is very big), can select multidimensional figure bar code.
Step S14, read module 14 read the space size that selected figure bar code can be held.
Step S16 splits the space size of module 16 according to the figure bar code that is read, and the content of the file that obtained is split into the part that several can be held by selected figure bar code.For example: if the content of the file that obtained is 5000 bytes, institute reads to such an extent that the space size that can hold of figure bar code is 1108 bytes, and then the content of this document need be split into 4 1108 bytes partly and one 568 byte part.
Step S18, the content after modular converter 18 will split converts binary code respectively to, more described binary code is converted to corresponding figure bar code respectively.For example: when selected when selected barcode types is two-dimensional bar code, figure bar code after the described conversion is a matrix form figure bar code, described matrix form figure bar code is formed with the form of matrix, on matrix respective element position, represent binary one with " point ", with " sky " expression binary zero, by the code that rearranges of " point " and " sky ".The order of this conversion is changed according to the sequencing that splits the back file content.The compare space size of original content of matrix form graphic bar code space size after the conversion significantly reduces, for example: if size is arranged is that the file of 26000 bytes includes only literal, after selected figure bar code is two-dimensional bar code, after through modular converter 18 conversions, the byte of the matrix form figure bar code that produces is total up to about 5000 bytes, and compressibility is about 80%; If it is that the file of 26000 bytes comprises literal and picture that size is arranged, after selected figure bar code is two-dimensional bar code, after through modular converter 18 conversions, the byte of the matrix form figure bar code of generation is total up to about 13000 bytes, and compressibility is about 50%.
Step S20, writing module 20 writes serial number in the rearmost position of each figure bar code successively according to the sequencing that described figure bar code produces.When writing module 20 write serial number in the rearmost position of each figure bar code, this serial number can be presented in the name of each figure bar code.Described serial number can be represented with arabic numeral, for example: if the name of the file of this capacity reducing backup is " document ", then the name of the figure bar code that produces at first is " document 1 ", the name of the second figure bar code that produces is " document 2 ", the name of the 3rd figure bar code that produces is " document 3 ", and the like.
Step S22, encrypting module 22 is provided with Crypted password for all figure bar codes.
Step S24, encrypting module 22 carries out encipherment protection according to set Crypted password to all figure bar codes.
Step S26 preserves module 24 described figure bar code of carrying out behind the encipherment protection is saved in the database 2.

Claims (5)

  1. [claim 1] a kind of file capacity reducing standby system comprises main frame and the database that links to each other with this main frame, it is characterized in that this main frame comprises:
    Acquisition module is used for obtaining from this database the content of the file that need carry out capacity reducing backup;
    Select module, be used for type according to the suitable figure bar code of the content choice of described file;
    Read module is used to read the space size that selected figure bar code can be held;
    Split module, be used for space size, the content of the file that obtained is split into the part that several can be held by selected figure bar code according to the figure bar code that is read;
    Modular converter is used for converting the content after splitting to binary code respectively, more described binary code is converted to corresponding figure bar code respectively;
    Writing module is used for writing serial number in the rearmost position of each figure bar code successively according to the sequencing that described figure bar code produces; And
    Preserve module, be used for described figure bar code is saved to this database.
  2. [claim 2] file capacity reducing as claimed in claim 1 standby system is characterized in that this system also comprises:
    Encrypting module is used for Crypted password being set for described figure bar code, and according to set Crypted password all figure bar codes being carried out encipherment protection before the preservation module is saved to database with described figure bar code.
  3. [claim 3] file capacity reducing as claimed in claim 1 standby system is characterized in that the type of described figure bar code comprises bar code, two-dimensional bar code and dimensional bar code.
  4. [claim 4] a kind of file capacity reducing backup method is characterized in that this method comprises the steps:
    From database, obtain the content of the file that need carry out the capacity reducing backup;
    Type according to the suitable figure bar code of the content choice of described file;
    Read the space size that selected figure bar code can be held;
    According to the space size of the figure bar code that is read, the content of the file that obtained is split into the part that several can be held by selected figure bar code;
    Convert the content after splitting to binary code respectively, more described binary code is converted to corresponding figure bar code respectively;
    The sequencing that produces according to described figure bar code writes serial number in the rearmost position of each figure bar code successively; And
    Described figure bar code is saved in this database.
  5. [claim 5] file capacity reducing as claimed in claim 4 backup method is characterized in that, also comprises step before the step that described figure bar code is saved in this database:
    Crypted password is set for all figure bar codes; And
    According to set Crypted password all figure bar codes are carried out encipherment protection.
CN200810300694A 2008-03-25 2008-03-25 System and method for capacity-reduction and backup of file Pending CN101546326A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810300694A CN101546326A (en) 2008-03-25 2008-03-25 System and method for capacity-reduction and backup of file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810300694A CN101546326A (en) 2008-03-25 2008-03-25 System and method for capacity-reduction and backup of file

Publications (1)

Publication Number Publication Date
CN101546326A true CN101546326A (en) 2009-09-30

Family

ID=41193466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810300694A Pending CN101546326A (en) 2008-03-25 2008-03-25 System and method for capacity-reduction and backup of file

Country Status (1)

Country Link
CN (1) CN101546326A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105678206A (en) * 2015-12-29 2016-06-15 东软集团股份有限公司 Bar code identification method and apparatus
CN105897885A (en) * 2016-04-07 2016-08-24 深圳市永兴元科技有限公司 Cross-network data transmission method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105678206A (en) * 2015-12-29 2016-06-15 东软集团股份有限公司 Bar code identification method and apparatus
CN105897885A (en) * 2016-04-07 2016-08-24 深圳市永兴元科技有限公司 Cross-network data transmission method and device

Similar Documents

Publication Publication Date Title
CN101441713B (en) Optical character recognition method and apparatus of PDF document
US20170249345A1 (en) A biomolecule based data storage system
US7810026B1 (en) Optimizing typographical content for transmission and display
US5606649A (en) Method of encoding a document with text characters, and method of sending a document with text characters from a transmitting computer system to a receiving computer system
JP5102838B2 (en) Migration apparatus and method for converting mainframe system database to database suitable for open system
EP2482231B1 (en) Method for encoding and decoding data on a matrix code symbol
CN1009503B (en) Storage method and application system for literal ward and graphic
JP5788047B2 (en) Encoder for encoding text into matrix code symbols and decoder for decoding matrix code symbols
JPH02228879A (en) Method of compacting data
JP2002300408A (en) Unit and method for filing image, and unit and method for recovering the image
CN101546326A (en) System and method for capacity-reduction and backup of file
TWI470457B (en) Searchable color encoded file composing method and searchable color encoded file system
EP2144185A1 (en) Printing control device, control method for a printing device, and a control program
US20060256357A1 (en) System and method for improved printing efficiency
KR20150044430A (en) Document processing system, electronic document, document processing method, and program
JP2017211936A (en) Document storage processing system
CN114676673A (en) Form input method, device and equipment of text data based on voice recognition
CN109887197A (en) A kind of vector fonts Method of printing and POS machine based on POS machine
TWI334580B (en) Ink information in image files
CN103136559A (en) Rasterization method of variable bar codes and device
CN101266775B (en) Compression storage method and decompression method for lattice word library
CN100580673C (en) Known format word library comparison system
JP5501307B2 (en) Apparatus for decoding matrix code symbols and method for decoding matrix code symbols
CN1169073C (en) Video text editing method and system thereof
CN1172266C (en) Compressed chinese character library chip

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090930