CN105975607A - Picture storing and reading methods and picture storing system - Google Patents

Picture storing and reading methods and picture storing system Download PDF

Info

Publication number
CN105975607A
CN105975607A CN201610324162.XA CN201610324162A CN105975607A CN 105975607 A CN105975607 A CN 105975607A CN 201610324162 A CN201610324162 A CN 201610324162A CN 105975607 A CN105975607 A CN 105975607A
Authority
CN
China
Prior art keywords
picture
unit
character
binary
character string
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
CN201610324162.XA
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.)
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing 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 LeTV Holding Beijing Co Ltd, LeTV Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610324162.XA priority Critical patent/CN105975607A/en
Publication of CN105975607A publication Critical patent/CN105975607A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The embodiment of the invention belongs to the field of computers, and relates to picture storing and reading methods. The picture storing method comprises the steps of obtaining binary stream data of a picture and conducting grouping operation, obtaining two or more groups of binary stream units and conducting encoding processing on the binary stream units to obtain a group of character strings and splicing the character strings to obtain picture character strings and store the picture character strings. The picture reading method comprises the steps of reading the picture character strings and conducting grouping, obtaining two or more picture character string units containing two adjacent characters, conducting decoding operation on the picture character string units to obtain the binary stream units, splicing the binary stream units to obtain the binary stream data of the picture and further obtaining the picture. In addition, the invention relates to picture storing and reading devices. According to the scheme, one byte is divided into two characters to be stored, storing in the database is convenient, the space is saved, and meanwhile the problem that a privacy picture can be accessed only by obtaining an address of the picture is avoided.

Description

A kind of picture storage and read method, picture access system
Technical field
The embodiment of the present invention belongs to computer realm, particularly relates to a kind of picture storage and read method, with And one picture access system.
Background technology
In the existing page shows, all of picture is as a static WEB engineering, in data base Store is the chained address of this picture, just can access as long as being aware of chained address.
Owing to existing Pages Design using dynamically and the pattern of static separation, it is desirable to according to user identity pair The chained address of picture carries out control of authority can be extremely difficult, so causes the figure relating to user privacy information The level security of sheet is relatively low, and a kind of existing way is directly as character string by the binary stream of picture Being stored in data base, as long as with the problem avoiding the address obtaining picture just can access, but data base is also The most directly support big binary stream, and this processing mode can take bigger memory space.
Summary of the invention
Based on above-mentioned background, the embodiment of the present invention provides a kind of picture storage and read method, to solve to have The problem that in the picture of confidentiality requirement access procedure in data base, binary stream is excessive, solves simultaneously The problem taking bigger memory space when the binary stream of picture is stored in data base directly as character string.
First aspect, the embodiment of the present invention provides a kind of picture storage method, and concrete steps include,
Obtain the binary stream data of picture;
Described binary stream data are performed division operation, it is thus achieved that binary stream unit more than two;
Described binary stream unit is carried out coded treatment, it is thus achieved that one group of character string;
Described character string is spliced, it is thus achieved that picture character string;
Store described picture character string.
Preferably, binary stream unit coding process particularly as follows:
Determine the numerical range of the binary number that described binary stream unit is corresponding;
Perform binary number to carry out conversion operation, if described numerical range is more than or equal to O, to described two System number performs system conversion operation, if numerical value is negative, takes the execution of described binary number after just operating Performing system conversion operation again, it is thus achieved that new system number, described new system number includes up to two, described in take Just operating and specially former numerical value and the 3rd preset value are being sued for peace;
Performing summation conversion operation, the high position taking described new system number obtains first with the first preset value summation And value, take the low level of new system number and the summation of the second preset value obtain second and value, according to first and value and Second obtains the first character corresponding in ASCII character table and the second character respectively with being worth;
Described first character and described second character splicing are obtained a character string.
Second aspect, the embodiment of the present invention provides a kind of picture storage means, including:
Binary stream acquiring unit, for obtaining the binary stream information of picture;
Binary packet unit, for described binary stream data perform division operation, it is thus achieved that two groups with Upper binary stream unit;
Binary coding unit, for carrying out coded treatment to described binary stream unit, it is thus achieved that one group of word Symbol string;
String-concatenation unit, for splicing described character string, it is thus achieved that picture character string;
Character string memory element, is used for storing described picture character string.
Preferably, described binary coding unit includes:
Numerical value judgment sub-unit, is used for the numerical value model of the binary number determining that described binary stream unit is corresponding Enclose;
System conversion subelement, if for described numerical range more than or equal to O, holding described binary number Advance system conversion operation, if numerical value is negative, to described binary number perform take just operate after perform again into System conversion operation, it is thus achieved that new system number, described new system number includes up to two, described in take and just operate tool Body is former numerical value and the 3rd preset value to be sued for peace;
Operator unit, for take the high position of described new system number and the first preset value summation obtain first and Value, takes the low level of new system number and obtains second and value with the summation of the second preset value, according to first be worth and the Two obtain the first character corresponding in ASCII character table and the second character respectively with being worth;
Character splicing subelement, for obtaining a character by described first character and described second character splicing String.
The third aspect, the embodiment of the present invention also provides for a kind of picture read method, and read step includes:
Read picture character string;
Described picture character string is grouped, it is thus achieved that two or more picture string elements, each picture character String location comprises adjacent two character;
Described picture string elements is performed decoding operation, it is thus achieved that binary stream unit;
Described binary stream unit is spliced, it is thus achieved that the binary stream data of described picture;
Described picture is obtained according to described binary stream data.
Preferably, string elements decoding process is:
The first character according to picture string elements and time position character obtain the ASCII character of correspondence;
Difference conversion operation is asked in execution, and numerical value corresponding for the first character ASCII character is deducted the first preset value, Obtain the first difference, numerical value corresponding for secondary position character ASCII character is deducted the second preset value, obtains second Difference, using described first difference as the high position of a numerical value, using described second difference as described numerical value Low level;
Described numerical value is converted to binary number;
Reduction binary stream unit, if the numerical value of described binary number is less than the 4th preset value, described two enter Number processed is described binary stream unit, if the numerical value of described binary number is not less than the 4th preset value, then Binary number is deducted the 3rd preset value, obtains new binary number and be described binary stream unit.
Fourth aspect, the embodiment of the present invention also provides for a kind of figure slice reading device, including:
Character string reads unit, for reading described picture character string;
Character string grouped element, for being grouped described picture character string, it is thus achieved that two or more picture character String location, each picture string elements comprises adjacent two character;
Character string decoding unit, for performing decoding operation, it is thus achieved that two enter to described picture string elements System stream unit;
Binary stream concatenation unit, for splicing described binary stream unit, it is thus achieved that described picture Binary stream data;
Picture reads unit, for obtaining described picture according to described binary stream data.
Preferably, described character string decoding unit includes:
ASCII character obtains subelement, obtains for the first character according to picture string elements and time position character To corresponding ASCII character;
Operator unit, for numerical value corresponding for the first character ASCII character is deducted the first preset value, obtains First difference, deducts the second preset value by numerical value corresponding for secondary position character ASCII character, obtains the second difference, Using described first difference as the high position of a numerical value, using described second difference as the low level of described numerical value;
System conversion subelement, for being converted to binary number by described numerical value;
Judgment sub-unit, during for judging that the numerical value of described binary number is less than four preset values, takes described two System number is described binary stream unit;Judge that the numerical value of described binary number is not less than the 4th preset value, Then binary number is deducted the 3rd preset value, takes new binary number and be described binary stream unit.
5th aspect, the embodiment of the present invention also provides for a kind of picture storage and reading device, including:
Binary stream acquiring unit, for obtaining the binary stream information of picture;
Binary packet unit, for performing division operation to binary stream, it is thus achieved that one group isometric two is entered System stream unit, wherein binary stream unit ordered arrangement;
Binary coding unit, for carrying out coded treatment to binary stream unit, it is thus achieved that one group of character string;
String-concatenation unit, for splicing all character strings in order, it is thus achieved that picture character string;
Character string memory element, for storing described picture character string;
Character string reads unit, for reading described picture character string;
Character string grouped element, for picture character string is grouped, it is thus achieved that one group of picture string elements, Each picture string elements comprises adjacent two character;
Character string decoding unit, for performing decoding operation, it is thus achieved that one group orderly to picture string elements Binary stream unit;
Binary stream concatenation unit, for splicing all binary stream unit in order, it is thus achieved that the two of picture System stream;
Picture reads unit, for reading complete picture according to binary stream.
Wherein binary stream acquiring unit, binary packet unit, binary coding unit, character string are spelled Order unit, character string memory element, character string read unit, character string grouped element, character string decoding Unit, binary stream concatenation unit, picture read unit and are sequentially connected with.
The picture storage method provided by the embodiment of the present invention, becomes two characters by a byte split Storage, convenient storage in data base, save space, it is achieved between character string and binary stream Lossless conversion, simultaneously when accessing picture, the picture read method provided by the embodiment of the present invention, right For privacy picture, the address that only need to obtain picture can be avoided i.e. to may have access to the problem of picture, based on The picture access system of the storage of aforementioned picture and read method also can obtain relevant art effect.
Accompanying drawing explanation
The picture Stored Procedure figure that Fig. 1 provides for the embodiment of the present invention one.
The binary stream coded treatment flow chart that Fig. 2 provides for the embodiment of the present invention two.
The binary stream coding schematic diagram that Fig. 3 provides for the embodiment of the present invention two.
The picture that Fig. 4 provides for the embodiment of the present invention three reads flow chart.
The picture Character decoder flow chart that Fig. 5 provides for the embodiment of the present invention four.
The picture storage means block diagram that Fig. 6 provides for the embodiment of the present invention five.
The binary coding cellular construction block diagram that Fig. 7 provides for the embodiment of the present invention five.
The figure slice reading device block diagram that Fig. 8 provides for the embodiment of the present invention six.
The character string decoding unit structured flowchart that Fig. 9 provides for the embodiment of the present invention six.
The picture access system architecture diagram that Figure 10 provides for the embodiment of the present invention seven.
Detailed description of the invention
For the ease of understanding the present invention, below with reference to relevant drawings, the present invention is comprehensively described. But, the present invention can also use other multiple different forms to realize, however it is not limited to described herein Embodiment.
Unless otherwise defined, the implication that terminology used herein and those skilled in the art are generally understood that Identical.
Embodiment one
The previously mentioned access for picture, is that the picture address being stored in data base by access is realized, Safe password protection for picture considers, the scheme of the embodiment of the present invention is by lossless for the binary stream of picture It is stored in data base, to improve the safe password protection of picture.But data base the most directly supports that big two enter System stream, because if by binary stream directly as this paper write into Databasce.So lane database storage figure This field of sheet will be 0 and 1 composition entirely, and 0 and 1 is all to store as byte, such as deposits Store up the binary stream of 8, the memory space of 8 bytes will be taken.Additionally, what data base can support The field format that picture is the biggest only has textual form, so needs give consideration to how and are converted into by binary stream Text, refers to the picture Stored Procedure figure shown in Fig. 1, comprises the steps,
S11, the binary stream information of acquisition picture.
S12, to described binary stream data perform division operation, it is thus achieved that binary stream unit more than two. Preferred version according to the present embodiment, it is thus achieved that each group binary stream unit isometric, it is thus achieved that each group two enter System stream unit ordered arrangement.
In the present embodiment preferred version, the division operation to binary stream is as array using binary stream Circulation, a value of array is a byte, and the binary number of i.e. eight, in computer disposal mistake Cheng Zhong, the first place of eight bit is sign bit, therefore true value scope corresponding to byte is [-128,127].
S13, successively binary stream unit is carried out coded treatment, it is thus achieved that one group of character string.
Concrete, coding process is that binary number corresponding for binary stream unit is converted into ASCII The character string that character corresponding in code table is formed.
S14, all character strings are spliced in order, it is thus achieved that picture character string.
S15, store the character string of described picture.
Previously mentioned, if by binary stream directly as this paper write into Databasce, then lane database is deposited This field of storage picture will be 0 and 1 composition entirely, and 0 and 1 is all to store as byte, logical Cross the picture storage method that the present embodiment provides, binary cell is split into character and stores, by character It is stored in data base, it is ensured that the safe password protection of picture, saves memory space simultaneously.
Embodiment two
Referring to the coded treatment flow chart shown in Fig. 2, the process of coded treatment is as follows:
S131, determine the numerical range of the binary number that described binary stream unit is corresponding.
According to preferred version, binary number is eight bit.
S132, to binary number perform carry out conversion operation.If described numerical range is more than or equal to O, right Described binary number performs system conversion operation, if numerical value is negative, performs just to take to described binary number System conversion operation is performed again, it is thus achieved that new system number, described new system number includes up to two, institute after operation State to take just to operate and specially former numerical value and the 3rd preset value are sued for peace.
As a example by eight bit, eight bit is performed system conversion operation, it is thus achieved that new system Number, described new system number contains up to two.So-called new system number obtains after referring to perform system conversion Number, such as to eight bit perform 60 the quaternarys conversion operation, it is thus achieved that new system number be 60 Quaternary number.
Concrete, take just to operate and specially former numerical value and the 3rd preset value are sued for peace, keeping the number before just in mind is B, Number after just taking is A, and the 3rd preset value is Y3, has an equation below:
A=B+Y3.
S133, execution summation conversion operation obtain the first character and the second character.Take described new system number A high position obtains first and value with the first preset value summation, takes low level and the summation of the second preset value of new system number Obtain second and value, according to first and value and second and be worth in acquisition ASCII character table respectively corresponding first Character and the second character.
As a example by the process of eight bit, the high position in note step S133 is H, and the first preset value is Y1, first and value for P1, have an equation below:
P1=H+Y1.
Low level in note step S133 is L, and the second preset value is Y2, second and value for P2, have following public affairs Formula:
P2=L+Y2.
S134, the first character and the second character are spliced obtain a character string;
Above-mentioned and value is integer.
It is emphasized that the system conversion operation in coding step S132, if the position of the number after Zhuan Huan Number, less than two, therefore can select duotricemary notation to change, 60 quaternary conversions etc..As Number after fruit conversion only has one, and when carrying out the operation of coding step S133, a high position takes 0 and sues for peace Calculating, the number after such as converting is 3, then P1=0+Y1, P2=3+Y2.
The embodiment of the present invention preferentially uses 60 quaternarys conversion operations, use simultaneously in ASCII character table from In ASCII character table, 110 4 characters started are as a high position, and in table, 33 64 characters started are as one The low level of individual byte, the i.e. first preset value Y1 takes decimal number 110, and the second preset value takes decimal number 33, 3rd preset value takes decimal number 256.The value of Y1 and Y2 is not limited to aforementioned value, only needs YI and Y2 Value ensure that coding step S133 and value P1 and P2 can find correspondence in ASCII character table Shown character.
Additionally, taking in step S132 just operates, can first all of binary stream unit all be performed Take and after just operating, perform subsequent step again, it is also possible to single value is that negative binary stream unit performs just to take And after encoding operation, then it is that negative binary stream unit performs just taking and encoding operation to next value.
Schematic diagram is encoded refering to the binary stream shown in Fig. 3, after being grouped with eight bit for unit, As a example by taking " 00011011 ", cataloged procedure is described.
The true value understanding " 00011011 " be " 27 ", and being scaled after 60 quaternarys as number is " r ", Having one, therefore the decimal value of the P1 asked is 110, corresponding ascii character is " n ", and the ten of P2 enter Value processed is 60, and corresponding ascii character is that " result after < ", i.e. " 00011011 " coding is " n < ".
The above-mentioned cataloged procedure that the present embodiment provides, the result of coding is the binary cell of eight to be split Becoming two characters to store, shared space will save 75%, and character is stored in data base, it is ensured that The safe password protection of picture.
Embodiment three
The picture provided refering to Fig. 4 reads flow chart, based on the picture character string in embodiment one, reads Step includes:
S21, reading picture character string.
S22, by described picture character string be grouped, it is thus achieved that two or more picture string elements, each picture String elements comprises adjacent two character.
By its character of character string searching loop, inevitable one of two adjacent characters are high-order, and one is low Position.
S23, to described picture string elements perform decoding operation, it is thus achieved that binary stream unit.
According to preferred version, picture string elements is performed decoding operation and obtains each group of binary stream unit Ordered arrangement;Concrete, the process of character string decoding is by ASCII character table, character to be converted into two enter Number processed.
S24, all binary stream unit are spliced in order, it is thus achieved that the binary stream of described picture;
Concrete, binary number corresponding for binary stream unit is spliced in order, or binary stream.
S25, according to binary stream obtain described picture.
The scheme that the present embodiment provides is to read to be converted into the picture that character stores, and the process that reads needs It is decoded operation, it is to avoid only it is to be understood that the picture address problem that just can access picture in prior art.
Embodiment four
The picture character string decoding process figure provided refering to Fig. 5, based on the picture character in previous embodiment String,
String elements decoding process is:
S231, obtain the ASCII character of correspondence according to the first character of picture string elements and secondary position character;
Character in such as embodiment one " n < ", ASCII character corresponding to the first character " n " is " 01101110 ", Corresponding decimal number is 110, and " ASCII character of < " correspondence is " 00111100 " to secondary position character, corresponding Decimal number be 60.
Difference conversion operation is asked in S232, execution.Numerical value corresponding for the first character is deducted described first preset value, Obtain the first difference, numerical value corresponding for secondary position character deducted described second preset value, obtains the second difference, Using described first difference as the high position of a numerical value, using described second difference as the low level of a numerical value.
Numerical value M1, the numerical value M2 that secondary position character is corresponding that the first character of note is corresponding, high-order H ', low level L ', First preset value and the second preset value are identical with the first preset value in embodiment one and the second preset value.Have Formula:
H '=M1-Y1;
L '=M2-Y2.
S233, the numerical value of above-mentioned acquisition is converted to binary number;
S234, reduction binary stream unit, if the numerical value of described binary number is less than the 4th preset value, institute Stating binary number and be above-mentioned binary stream unit, decoding completes;If the numerical value of described binary number is the least In the 4th preset value, then binary number is deducted above-mentioned 3rd preset value, obtains new binary number and be Above-mentioned binary stream unit, decoding completes.Binary number in S234 is preferably eight bit.
The 4th preset value in the present embodiment takes decimal number 127.
The scheme that the present embodiment provides is to read to be converted into the picture that character stores, and the process that reads needs It is decoded operation, it is to avoid only it is to be understood that the picture address problem that just can access picture in prior art.
Embodiment five
Refering to the picture storage means block diagram shown in Fig. 6, the present embodiment is without the storage device provided, device Including binary stream acquiring unit 01, binary packet unit 02, binary coding unit 03, character string Concatenation unit 04, character string memory element 05, each unit is sequentially connected with.
Wherein binary stream acquiring unit 01 is for obtaining the binary stream information of picture;
Binary packet unit 02 is for carrying out coded treatment to described binary stream unit, it is thus achieved that one group of word Symbol string, according to preferred version, performs division operation to binary stream, it is thus achieved that one group of isometric and ordered arrangement Binary stream unit;Division operation to binary stream is to be circulated as array by binary stream, array A value be a byte, the binary number of i.e. eight.
Binary coding unit 03 is for carrying out coded treatment to described binary stream unit, it is thus achieved that one group of word Symbol string;As it is shown in fig. 7, binary coding unit 03 includes:
Numerical value judgment sub-unit 031, is used for the numerical value of the binary number determining that described binary stream unit is corresponding Scope;
System conversion subelement 032, if for described numerical range more than or equal to O, to described binary system Number performs system conversion operation, if numerical value is negative, takes the execution of described binary number and holds after just operating again System of advancing conversion operation, it is thus achieved that new system number, described new system number includes up to two, described in take and just grasp Make to be specially and former numerical value and the 3rd preset value are sued for peace;System conversion subelement performs system conversion operation, As long as the figure place of the number after Zhuan Huan is less than two.
Operator unit 033, obtains first for taking a high position for described new system number with the first preset value summation And value, take the low level of new system number and the summation of the second preset value obtain second and value, according to first and value and Second obtains the first character corresponding in ASCII character table and the second character respectively with being worth;
Character splicing subelement 034, for obtaining a word by described first character and described second character splicing Symbol string.
String-concatenation unit 04 is for splicing described character string, it is thus achieved that picture character string.According to Preferred version, for splicing all character strings in order, it is thus achieved that picture character string.
Character string memory element 05 is used for storing picture character string.
The picture storage means provided by the present embodiment, becomes two characters to store a byte split, Convenient storage in data base, saves space, it is achieved lossless turn between character string and binary stream Change.
Embodiment six
Refering to the figure slice reading device block diagram shown in Fig. 8, the figure slice reading device word that the present embodiment six provides Symbol string reads unit 11, character string grouped element 12, character string decoding unit 13, binary stream splicing list Unit 14, picture read unit 15, and each unit is sequentially connected with.
Character string reads unit 11 and is used for reading picture character string;
Character string grouped element 12 is for being grouped described picture character string, it is thus achieved that two or more picture character String location, each picture string elements comprises adjacent two character;
Character string decoding unit 13 for performing decoding operation to described picture string elements, it is thus achieved that two enter System stream unit.According to preferred version, picture string elements is performed the binary stream that decoding operation obtains Unit ordered arrangement.
As it is shown in figure 9, character string decoding unit 13 specifically includes:
ASCII character obtains subelement 131, for the first character according to picture string elements and time position word Symbol obtains the ASCII character of correspondence;
Operator unit 132, for numerical value corresponding for the first character ASCII character is deducted the first preset value, Obtain the first difference, numerical value corresponding for secondary position character ASCII character is deducted the second preset value, obtains second Difference, using described first difference as the high position of a numerical value, using described second difference as described numerical value Low level;
System conversion subelement 133, for being converted to binary number by described numerical value;
Judgment sub-unit 134, during for judging that the numerical value of described binary number is less than four preset values, takes institute State binary number and be described binary stream unit;Judge that the numerical value of described binary number is pre-not less than the 4th If value, then binary number is deducted the 3rd preset value, takes new binary number and be described binary stream list Unit.
Binary stream concatenation unit 14, for splicing described binary stream unit, it is thus achieved that described figure The binary stream data of sheet.
According to preferred version, carry out described binary stream unit splicing the concrete mode using splicing in order.
Picture reads unit 15, for obtaining described picture according to described binary stream data.
The figure slice reading device provided by the present embodiment, when accessing picture, by reading with character style The picture being stored in data base, can avoid the address that only need to obtain picture to visit for privacy picture The problem asking picture.
Embodiment seven
System block diagram is accessed, the picture access system that the present embodiment seven provides refering to the picture shown in Figure 10 System include binary stream acquiring unit 201, binary packet unit 202, binary coding unit 203, String-concatenation unit 204, character string memory element 205, character string read unit 206, character string is divided Group unit 207, character string decoding unit 208, binary stream concatenation unit 209, picture read unit 210, Each unit is sequentially connected with.
Binary stream acquiring unit 201 is for obtaining the binary stream information of picture;
Binary packet unit 202 is for carrying out coded treatment to described binary stream unit, it is thus achieved that one group Character string, according to preferred version, performs division operation to binary stream, it is thus achieved that one group isometric and arrange in order The binary stream unit of row;Division operation to binary stream is to be circulated as array by binary stream, number One value of group is a byte, the binary number of i.e. eight.
Binary coding unit 203 is for carrying out coded treatment to described binary stream unit, it is thus achieved that one group Character string;
String-concatenation unit 204 is for splicing described character string, it is thus achieved that picture character string.Root According to preferred version, for all character strings are spliced in order, it is thus achieved that picture character string.
Character string memory element 205 is used for storing picture character string.
Character string reads unit 206 and is used for reading picture character string;
Character string grouped element 207 is for being grouped described picture character string, it is thus achieved that two or more picture word Symbol string location, each picture string elements comprises adjacent two character;
Character string decoding unit 208 for performing decoding operation to described picture string elements, it is thus achieved that two System stream unit.According to preferred version, picture string elements is performed the binary system that decoding operation obtains Stream unit ordered arrangement.
Binary stream concatenation unit 209, for splicing described binary stream unit, it is thus achieved that described figure The binary stream data of sheet.
According to preferred version, carry out described binary stream unit splicing the concrete mode using splicing in order.
Picture reads unit 210, for obtaining described picture according to described binary stream data.
The picture access system provided by the present embodiment, becomes two characters to store a byte split, Convenient storage in data base, saves space, it is achieved lossless turn between character string and binary stream Change, simultaneously when accessing picture, the address that only need to obtain picture can be avoided to visit for privacy picture The problem asking picture.
These are only the preferred embodiments of the present invention, but be not limiting as the scope of the claims of the present invention, although ginseng According to previous embodiment, the present invention is described in detail, for those skilled in the art comes, Technical scheme described in foregoing embodiments still can be modified by it, or to wherein part skill Art feature carries out equivalence replacement.Every equivalent structure utilizing description of the invention and accompanying drawing content to be done, Directly or indirectly it is used in other relevant technical fields, the most in like manner within scope of patent protection of the present invention.

Claims (9)

1. a picture storage method, it is characterised in that comprise the following steps:
Obtain the binary stream data of picture;
Described binary stream data are performed division operation, it is thus achieved that binary stream unit more than two;
Described binary stream unit is carried out coded treatment, it is thus achieved that one group of character string;
Described character string is spliced, it is thus achieved that picture character string;
Store described picture character string.
A kind of picture storage method the most according to claim 3, it is characterised in that described to described Binary stream unit carries out coded treatment, particularly as follows:
Determine the numerical range of the binary number that described binary stream unit is corresponding;
Perform binary number to carry out conversion operation, if described numerical range is more than or equal to O, to described two System number performs system conversion operation, if numerical value is negative, takes the execution of described binary number after just operating Performing system conversion operation again, it is thus achieved that new system number, described new system number includes up to two, described in take Just operating and specially former numerical value and the 3rd preset value are being sued for peace;
Performing summation conversion operation, the high position taking described new system number obtains first with the first preset value summation And value, take the low level of new system number and the summation of the second preset value obtain second and value, according to first and value and Second obtains the first character corresponding in ASCII character table and the second character respectively with being worth;
Described first character and described second character splicing are obtained a character string.
3. a picture storage means, it is characterised in that include
Binary stream acquiring unit, for obtaining the binary stream information of picture;
Binary packet unit, for described binary stream data perform division operation, it is thus achieved that two groups with Upper binary stream unit;
Binary coding unit, for carrying out coded treatment to described binary stream unit, it is thus achieved that one group of word Symbol string;
String-concatenation unit, for splicing described character string, it is thus achieved that picture character string;
Character string memory element, is used for storing described picture character string.
Picture storage means the most according to claim 3, it is characterised in that described binary coding Unit includes:
Numerical value judgment sub-unit, is used for the numerical value model of the binary number determining that described binary stream unit is corresponding Enclose;
System conversion subelement, if for described numerical range more than or equal to O, holding described binary number Advance system conversion operation, if numerical value is negative, to described binary number perform take just operate after perform again into System conversion operation, it is thus achieved that new system number, described new system number includes up to two, described in take and just operate tool Body is former numerical value and the 3rd preset value to be sued for peace;
Operator unit, for take the high position of described new system number and the first preset value summation obtain first and Value, takes the low level of new system number and obtains second and value with the summation of the second preset value, according to first be worth and the Two obtain the first character corresponding in ASCII character table and the second character respectively with being worth;
Character splicing subelement, for obtaining a character by described first character and described second character splicing String.
5. a picture read method, it is characterised in that including:
Read picture character string;
Described picture character string is grouped, it is thus achieved that two or more picture string elements, each picture character String location comprises adjacent two character;
Described picture string elements is performed decoding operation, it is thus achieved that binary stream unit;
Described binary stream unit is spliced, it is thus achieved that the binary stream data of described picture;
Described picture is obtained according to described binary stream data.
A kind of picture read method the most according to claim 5, it is characterised in that described character string Unit decoding process is:
The first character according to picture string elements and time position character obtain the ASCII character of correspondence;
Difference conversion operation is asked in execution, and numerical value corresponding for the first character ASCII character is deducted the first preset value, Obtain the first difference, numerical value corresponding for secondary position character ASCII character is deducted the second preset value, obtains second Difference, using described first difference as the high position of a numerical value, using described second difference as described numerical value Low level;
Described numerical value is converted to binary number;
Reduction binary stream unit, if the numerical value of described binary number is less than the 4th preset value, described two enter Number processed is described binary stream unit, if the numerical value of described binary number is not less than the 4th preset value, then Binary number is deducted the 3rd preset value, obtains new binary number and be described binary stream unit.
7. a figure slice reading device, it is characterised in that include
Character string reads unit, is used for reading picture character string;
Character string grouped element, for being grouped described picture character string, it is thus achieved that two or more picture character String location, each picture string elements comprises adjacent two character;
Character string decoding unit, for performing decoding operation, it is thus achieved that two enter to described picture string elements System stream unit;
Binary stream concatenation unit, for splicing described binary stream unit, it is thus achieved that described picture Binary stream data;
Picture reads unit, for obtaining described picture according to described binary stream data.
A kind of figure slice reading device the most according to claim 7, it is characterised in that described character String decoding unit includes:
ASCII character obtains subelement, obtains for the first character according to picture string elements and time position character To corresponding ASCII character;
Operator unit, for numerical value corresponding for the first character ASCII character is deducted the first preset value, obtains First difference, deducts the second preset value by numerical value corresponding for secondary position character ASCII character, obtains the second difference, Using described first difference as the high position of a numerical value, using described second difference as the low level of described numerical value;
System conversion subelement, for being converted to binary number by described numerical value;
Judgment sub-unit, during for judging that the numerical value of described binary number is less than four preset values, takes described two System number is described binary stream unit;Judge that the numerical value of described binary number is not less than the 4th preset value, Then binary number is deducted the 3rd preset value, takes new binary number and be described binary stream unit.
9. a picture access system, it is characterised in that including:
Binary stream acquiring unit, for obtaining the binary stream information of picture;
Binary packet unit, for described binary stream data perform division operation, it is thus achieved that two groups with Upper binary stream unit;
Binary coding unit, for carrying out coded treatment to described binary stream unit, it is thus achieved that one group of word Symbol string;
String-concatenation unit, for splicing described character string, it is thus achieved that picture character string;
Character string memory element, is used for storing described picture character string;
Character string reads unit, for reading described picture character string;
Character string grouped element, for being grouped described picture character string, it is thus achieved that two or more picture character String location, each picture string elements comprises adjacent two character;
Character string decoding unit, for performing decoding operation, it is thus achieved that two enter to described picture string elements System stream unit;
Binary stream concatenation unit, for splicing described binary stream unit, it is thus achieved that described picture Binary stream data;
Picture reads unit, for obtaining described picture according to described binary stream data.
Described binary stream acquiring unit, binary packet unit, binary coding unit, character string are spelled Order unit, character string memory element, character string read unit, character string grouped element, character string decoding Unit, binary stream concatenation unit, picture read unit and are sequentially connected with.
CN201610324162.XA 2016-05-16 2016-05-16 Picture storing and reading methods and picture storing system Pending CN105975607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610324162.XA CN105975607A (en) 2016-05-16 2016-05-16 Picture storing and reading methods and picture storing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610324162.XA CN105975607A (en) 2016-05-16 2016-05-16 Picture storing and reading methods and picture storing system

Publications (1)

Publication Number Publication Date
CN105975607A true CN105975607A (en) 2016-09-28

Family

ID=56955849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610324162.XA Pending CN105975607A (en) 2016-05-16 2016-05-16 Picture storing and reading methods and picture storing system

Country Status (1)

Country Link
CN (1) CN105975607A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790101A (en) * 2016-12-23 2017-05-31 北京邮电大学 A kind of mature detector set creation method, intrusion detection method and device
CN107734345A (en) * 2017-09-29 2018-02-23 深圳市聚宝汇科技有限公司 A kind of image data transmission method and system
CN108229180A (en) * 2016-12-09 2018-06-29 阿里巴巴集团控股有限公司 Sectional drawing data processing method, device and electronic equipment
CN109213796A (en) * 2018-09-20 2019-01-15 京信通信系统(中国)有限公司 Rf data table generating method and device, radio frequency value querying method and device
CN109359144A (en) * 2018-08-24 2019-02-19 中国建设银行股份有限公司 Date storage method and system, device and storage medium
CN110363117A (en) * 2019-06-28 2019-10-22 深圳数位传媒科技有限公司 A kind of method and device that encrypted random coded character file is parsed
CN110659489A (en) * 2019-09-20 2020-01-07 哈尔滨安天科技集团股份有限公司 Threat detection method, device and storage medium for character string splicing behavior
CN111223438A (en) * 2020-03-11 2020-06-02 Tcl华星光电技术有限公司 Compression method and device of pixel compensation table

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100205241A1 (en) * 2009-02-12 2010-08-12 Sunplus Technology Co., Ltd. Method and system for downloading network data into multimedia player
CN102737080A (en) * 2011-04-11 2012-10-17 友讯科技股份有限公司 Method for hiding real path of file for cloud processing
CN103257966A (en) * 2012-02-17 2013-08-21 阿里巴巴集团控股有限公司 Implementation method and system of search resource staticizing
CN105224879A (en) * 2014-06-30 2016-01-06 奇点新源国际技术开发(北京)有限公司 A kind of picture encapsulation, picture de-encapsulation method and device
CN105450232A (en) * 2014-08-28 2016-03-30 华为技术有限公司 Encoding method, decoding method, encoding device and decoding device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100205241A1 (en) * 2009-02-12 2010-08-12 Sunplus Technology Co., Ltd. Method and system for downloading network data into multimedia player
CN102737080A (en) * 2011-04-11 2012-10-17 友讯科技股份有限公司 Method for hiding real path of file for cloud processing
CN103257966A (en) * 2012-02-17 2013-08-21 阿里巴巴集团控股有限公司 Implementation method and system of search resource staticizing
CN105224879A (en) * 2014-06-30 2016-01-06 奇点新源国际技术开发(北京)有限公司 A kind of picture encapsulation, picture de-encapsulation method and device
CN105450232A (en) * 2014-08-28 2016-03-30 华为技术有限公司 Encoding method, decoding method, encoding device and decoding device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108229180A (en) * 2016-12-09 2018-06-29 阿里巴巴集团控股有限公司 Sectional drawing data processing method, device and electronic equipment
CN106790101A (en) * 2016-12-23 2017-05-31 北京邮电大学 A kind of mature detector set creation method, intrusion detection method and device
CN107734345A (en) * 2017-09-29 2018-02-23 深圳市聚宝汇科技有限公司 A kind of image data transmission method and system
CN107734345B (en) * 2017-09-29 2020-05-08 深圳市聚宝汇科技有限公司 Picture datamation transmission method and system
CN109359144A (en) * 2018-08-24 2019-02-19 中国建设银行股份有限公司 Date storage method and system, device and storage medium
CN109213796A (en) * 2018-09-20 2019-01-15 京信通信系统(中国)有限公司 Rf data table generating method and device, radio frequency value querying method and device
CN109213796B (en) * 2018-09-20 2020-11-10 京信通信系统(中国)有限公司 Radio frequency data table generation method and device and radio frequency value query method and device
CN110363117A (en) * 2019-06-28 2019-10-22 深圳数位传媒科技有限公司 A kind of method and device that encrypted random coded character file is parsed
CN110659489A (en) * 2019-09-20 2020-01-07 哈尔滨安天科技集团股份有限公司 Threat detection method, device and storage medium for character string splicing behavior
CN110659489B (en) * 2019-09-20 2023-03-24 安天科技集团股份有限公司 Threat detection method, device and storage medium for character string splicing behavior
CN111223438A (en) * 2020-03-11 2020-06-02 Tcl华星光电技术有限公司 Compression method and device of pixel compensation table
CN111223438B (en) * 2020-03-11 2022-11-04 Tcl华星光电技术有限公司 Compression method and device of pixel compensation table

Similar Documents

Publication Publication Date Title
CN105975607A (en) Picture storing and reading methods and picture storing system
US4782325A (en) Arrangement for data compression
CN108205577B (en) Array construction method, array query method, device and electronic equipment
CN101388012A (en) Phonetic check system and method with easy confusion tone recognition
US7900143B2 (en) Large character set browser
CN102867049A (en) Chinese PINYIN quick word segmentation method based on word search tree
EP2482231A1 (en) Method for encoding and decoding data on a matrix code symbol
JP5551660B2 (en) Computer-implemented method for encoding text into matrix code symbols, computer-implemented method for decoding matrix code symbols, encoder for encoding text into matrix code symbols, and decoder for decoding matrix code symbols
Barsky et al. A new method for indexing genomes using on-disk suffix trees
Barsky et al. Suffix trees for inputs larger than main memory
CN105653506B (en) It is a kind of based on character code conversion GPU in text-processing method and device
KR20220103170A (en) Computerized data compression and analysis using potentially non-adjacent pairs
CN103092859B (en) A kind of method and device obtaining music file information
CN103546167B (en) Code translator and the method that parsing data are decoded
CN1091529C (en) Full-shape code for characters
US6731229B2 (en) Method to reduce storage requirements when storing semi-redundant information in a database
Petri et al. Efficient indexing algorithms for approximate pattern matching in text
CN110287147A (en) A kind of character string sorting method and device
CN112699639B (en) Storage method and device of integer data and storage medium
Lindsay Literate programming.
CN116954622B (en) Method for associating abstract syntax tree with source code coordinates, electronic device and medium
JPS59109939A (en) Example dictionary
US8849866B2 (en) Method and computer program product for creating ordered data structure
Procházka et al. Byte-aligned pattern matching in encoded genomic sequences
Khorshhed et al. Bilingual 2D Barcode Encoding with High Capacity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160928