CN105119967A - Picture segmentation transmission method and device - Google Patents

Picture segmentation transmission method and device Download PDF

Info

Publication number
CN105119967A
CN105119967A CN201510417243.XA CN201510417243A CN105119967A CN 105119967 A CN105119967 A CN 105119967A CN 201510417243 A CN201510417243 A CN 201510417243A CN 105119967 A CN105119967 A CN 105119967A
Authority
CN
China
Prior art keywords
picture
picture block
requested
data
module
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
CN201510417243.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.)
TVM Beijing Education Technology Co Ltd
Original Assignee
TVM Beijing Education Technology 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 TVM Beijing Education Technology Co Ltd filed Critical TVM Beijing Education Technology Co Ltd
Priority to CN201510417243.XA priority Critical patent/CN105119967A/en
Publication of CN105119967A publication Critical patent/CN105119967A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a picture segmentation transmission method and device which are used to segment a picture and then transmit the segmented picture to a client side so that the objects that network transmission efficiency of the picture is improved and the picture is rapidly transmitted to the client side on the condition of a picture transmission failure are achieved. The method comprises searching and obtaining a requested picture according to a picture request sent by the client side, segmenting the requested picture into N picture blocks, generating serial numbers of the N picture blocks of the requested picture according to a predetermined numbering rule, enabling the N picture blocks of the requested picture to generating message data, and sending the message data to the client side; and the message data sent to the client side every time comprises currently sent picture block data, the serial numbers of the picture blocks and a picture identifier of the requested picture corresponding to the picture block data. The method can effectively improve picture transmission efficiency.

Description

A kind of picture segmentation transmission method and device
Technical field
The present invention relates to field of data transmission, particularly relate to a kind of picture segmentation transmission method and device.
Background technology
Along with the development of network technology, many picture browsing websites or multimedia web site are there is, server is when sending requested picture to the client of request picture, because the imperfect situation causing client cannot check picture of partial data transmission of picture may appear in web influence, at present, the usual means solving this problem are that server transmits picture in its entirety again to client, obviously, when picture is larger, this solution time-consuming and waste Internet resources.Therefore, need a kind of improve picture network transmission efficiency and can technical scheme when picture transfer failure fast to client transmissions picture.
Summary of the invention
The invention provides a kind of picture segmentation transmission method and device, in order to picture segmentation is transferred to client, reach the network transmission efficiency of raising picture and the object when picture transfer failure fast to client transmissions picture.
The invention provides a kind of picture segmentation transmission method, for server, comprising:
Step S11: the picture request of sending according to client, searches for and obtains requested picture;
Step S12: described requested picture segmentation is become N number of picture block, and according to predetermined number generate rule the sequence number of N number of picture block of requested picture; Wherein, N is the picture block Segmentation Number pre-set;
Step S13: N number of picture block of described requested picture is generated as message data successively and sends to client; Send to the message data of client to comprise the picture identification symbol of requested picture corresponding to the picture block data of current transmission, the sequence number of picture block and this picture block data at every turn.
Some beneficial effects of the embodiment of the present invention can comprise:
By picture segmentation is become multiple picture block, and be each picture block numbering, make when picture transfer failure, the picture block data of bust this only need resend to client by server, again whole picture need not be retransmitted, thus reach the object improving picture transfer efficiency.
In one embodiment, described step S12 also comprises: the check value generating each picture block;
Described message data also comprises the check value of picture block;
After described step S13, also comprise step S14: that sends according to client comprises picture identification symbol and the picture block request of picture block sequence number, regenerate message data corresponding to picture block that described picture block request specifies and send to client.
In this embodiment, because message data comprises the check value of picture block, then whether client can be complete according to the check value checking data blocks of data of picture block, thus whether the transmission of checking picture blocks of data is failed; When picture block data transmission fails, client only need send the request of the picture block of retransmission failure to server, the picture block data of bust this after receiving the request, resend to client by server, reach the object effectively improving picture transfer efficiency.
In one embodiment, the check value of described picture block is size or the MD5 value of picture block data.
Whether in this embodiment, the size of picture block data or MD5 value are the values very easily asked for, also can objectively check corresponding data block data complete simultaneously.
The invention provides a kind of picture segmentation transmission method, for client, comprising:
Step S21: send picture request to server;
Step S22: the message data that reception server is sent;
Step S23: resolve the message data of current reception, obtains the picture identification symbol of requested picture corresponding to picture block data, the sequence number of picture block and this picture block data and buffer memory;
Step S24: whether the number judging the picture block data of the requested picture of buffer memory is N, is perform step S25, otherwise perform step S22; Wherein, N is the picture block Segmentation Number pre-set;
Step S25: according to predetermined number rule and the sequence number of each picture block, becomes described requested picture by N number of picture block data assemblies corresponding for the picture identification of the requested picture of buffer memory symbol.
In this embodiment, after client receives all picture block data of the request picture that server is sent, according to predetermined number is regular and the sequence number of each picture block, picture block data corresponding for the picture identification of requested picture symbol are carried out combination producing picture, the work obtaining picture can be completed.The method have realize simple, obtain request picture feature fast.
In one embodiment, described step S23 comprises: resolve the message data of current reception, obtains the picture identification symbol also buffer memory of requested picture corresponding to picture block data, the sequence number of picture block, the check value of picture block and this picture block data;
After described step S23, before step S24, also comprise:
Step S31: the check value of the picture block parsed in the message data according to current reception verifies that whether the picture block data parsed in same message data are complete, is perform S24, otherwise perform S32;
Step S32: send picture block request to server, described picture block request comprises the sequence number of picture block corresponding to incomplete picture block data that current parse goes out and the picture identification symbol of requested picture.
In this embodiment, by the check value of picture block, client can verify that whether picture blocks of data is complete quickly and efficiently, and when the data block data verified does not complete, only need send to server the picture block request comprising the sequence number of picture block corresponding to incomplete picture block data that current parse goes out and the picture identification symbol of requested picture.Server upon receiving the request, will resend the image data blocks of data of client-requested, thus effectively improve the efficiency of transmission of picture.
The invention provides a kind of picture segmentation transmitting device, for server, comprising: picture acquisition module, picture segmentation module, picture block data transmission blocks;
Described picture acquisition module, for the picture request of sending according to client, searches for and obtains requested picture, and this requested picture is sent to picture segmentation module;
Described picture segmentation module, for described requested picture segmentation is become N number of picture block, and according to predetermined number generate rule the sequence number of N number of picture block of requested picture, and the picture identification of requested picture is accorded with, the sequence number buffer memory of each picture block data and each picture block; Wherein, N is the picture block Segmentation Number pre-set;
Described picture block data transmission blocks, the N number of picture block for the requested picture described picture segmentation module obtained is generated as message data successively and sends to client; Send to the message data of client to comprise the picture identification symbol of requested picture corresponding to the picture block data of current transmission, the sequence number of picture block and this picture block data at every turn.
In one embodiment, for a kind of picture segmentation transmitting device of server, picture block data acquisition module is also comprised;
Described picture segmentation module, also for after described requested picture segmentation is become N number of picture block, generates the check value of each picture block and the check value of each picture block of buffer memory; The check value of described picture block is size or the MD5 value of picture block data;
Described picture block data acquisition module, for the picture block request comprising picture identification symbol and picture block sequence number of sending according to client, the check value of the picture block data that this picture block request obtaining described picture segmentation module buffer memory is specified and picture block, and the picture identification of requested picture corresponding to the picture block data of acquisition, the check value of picture block, the sequence number of picture block and this picture block data symbol is sent to described picture block data transmission blocks;
Described picture block data transmission blocks, is also generated as message data for the picture identification symbol of requested picture corresponding to picture block data, the check value of picture block, the sequence number of picture block and this picture block data sent by described picture block data acquisition module and sends to client.
The present invention also provides a kind of picture segmentation transmitting device, for client, comprising: request module, receiver module, parsing module, the first judge module and composite module;
Described request module, for receiving the picture request of user, and sends to server by described picture request;
Described receiver module, for the message data that reception server is sent, and sends to described parsing module;
Described parsing module, for resolving the message data of current reception, obtain the picture identification symbol of requested picture corresponding to picture block data, the sequence number of picture block and this picture block data and buffer memory, and send counting instruction to described first judge module afterwards buffer memory is complete;
Described first judge module, for making current count value M=M+1 according to described counting instruction, judges whether M is N, is subsequently, makes M=0 and sends combined command to described composite module; Wherein, M is the number of the picture block data of the requested picture of current buffer memory, and initial value is 0; N is the picture block Segmentation Number pre-set;
Described composite module, for after receiving the combined command that described first judge module sends, combines the sequence number of N number of picture block data of described parsing module buffer memory according to predetermined number rule and each picture block.
In this embodiment, for a kind of picture segmentation transmitting device of client, also comprise: the second judge module, picture block request module;
The check value of the picture block parsed in the message data of described parsing module also for the current reception of buffer memory, and the check value of the picture block data parsed in the message data of current reception and picture block is sent to the second judge module; First instruction of described parsing module also for sending according to described second judge module, sends counting instruction to described first judge module;
Described second judge module, for verifying that whether the picture block data received are complete according to the check value of the picture block received simultaneously, be send the first instruction to described parsing module, otherwise send the second instruction of the check value comprising the picture block that current authentication uses to described picture block request module;
Described picture block request module, for the check value according to the picture block in described second instruction received, obtain the picture identification symbol of requested picture corresponding to the check value of this picture block of described parsing module buffer memory and the sequence number of picture block, send the picture block request of the sequence number of picture identification symbol containing the requested picture obtained and picture block to server.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from specification, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write specification, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of picture segmentation transmission method flow chart in the embodiment of the present invention;
The another kind of picture segmentation transmission method flow chart of Fig. 2 for providing in the embodiment of the present invention;
Fig. 3 is a kind of picture segmentation transmission method flow chart in the embodiment of the present invention one;
Fig. 4 is a kind of picture segmentation transmission method flow chart in the embodiment of the present invention two;
Fig. 5 be in the embodiment of the present invention the first for the picture segmentation transmitting device structural representation of server;
Fig. 6 be in the embodiment of the present invention the second for the picture segmentation transmitting device structural representation of server;
Fig. 7 be in the embodiment of the present invention the first for the picture segmentation transmitting device structural representation of client;
Fig. 8 be in the embodiment of the present invention the second for the picture segmentation transmitting device structural representation of client.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Fig. 1 is a kind of picture segmentation transmission method flow chart in the embodiment of the present invention.As shown in Figure 1, the method is used for server, comprises the steps S101-S103;
Step S101: the picture request of sending according to client, searches for and obtains requested picture.
Step S102: requested picture segmentation is become N number of picture block, and the sequence number of N number of picture block according to the requested picture of predetermined number generate rule; Wherein, N is the picture block Segmentation Number pre-set; When asking picture larger, by picture segmentation being become multiple little picture block data, conveniently processing and being transferred to client; Predetermined number rule can be the coding rule of making an appointment between server end and client, is segmentation picture or the foundation multiple picture block being synthesized the picture before segmentation.Such as, predetermined number rule can for first from left to right numbering from top to bottom, as obtained 4 picture block when requested picture is divided into 2 × 2 matrix form, be 1,2 by left-to-right two picture block number consecutivelies can be 3,4 subsequently by the first row by left-to-right two picture block number consecutivelies by the first row.
Step S103: N number of picture block of requested picture is generated as message data successively and sends to client; Send to the message data of client to comprise the picture identification symbol of requested picture corresponding to the picture block data of current transmission, the sequence number of picture block and this picture block data at every turn.Wherein, according to predefined sending order, N number of picture block of requested picture can be generated as message data successively and send to client, also can send to client after randomly ordered for N number of picture block.Each for N picture block according to the picture block data in message data and relevant information, can be synthesized asked picture according to predetermined number rule by the client receiving message data.
The picture segmentation transmission method for server that the embodiment of the present invention provides, by picture segmentation is become multiple picture block, and be each picture block numbering, make when picture transfer failure, the picture block data of bust this only need resend to client by server, again whole picture need not be retransmitted, thus reach the object improving picture transfer efficiency.
In one embodiment, step S102 also comprises: the check value generating each picture block.The message data now generated in step S103 also comprises the check value of picture block; And after step S103, also comprise step: that sends according to client comprises picture identification symbol and the picture block request of picture block sequence number, regenerates message data corresponding to picture block that picture block request specifies and sends to client.In this embodiment, because message data comprises the check value of picture block, then whether client can be complete according to the check value checking data blocks of data of picture block, thus whether the transmission of checking picture blocks of data is failed; When picture block data transmission fails, client only need send the request of the picture block of retransmission failure to server, the picture block data of bust this after receiving the request, resend to client by server, reach the object effectively improving picture transfer efficiency.
Whether because the size of picture block data or MD5 value are the values very easily asked for, also can objectively check corresponding data block data complete, therefore, in one embodiment, the check value of picture block is size or the MD5 value of picture block data simultaneously.
Fig. 2 is another kind of picture segmentation transmission method flow chart in the embodiment of the present invention.As shown in Figure 2, the method is used for client, comprises the steps S201-S205:
Step S201: send picture request to server;
Step S202: the message data that reception server is sent;
Step S203: resolve the message data of current reception, obtains the picture identification symbol of requested picture corresponding to picture block data, the sequence number of picture block and this picture block data and buffer memory;
Step S204: whether the number judging the picture block data of the requested picture of buffer memory is N, is perform step S205, otherwise perform step S202; Wherein, N is the picture block Segmentation Number pre-set;
Step S205: according to predetermined number rule and the sequence number of each picture block, becomes requested picture by N number of picture block data assemblies corresponding for the picture identification of the requested picture of buffer memory symbol.
The picture segmentation transmission method for client that the embodiment of the present invention provides, after client receives all picture block data of the request picture that server is sent, according to predetermined number is regular and the sequence number of each picture block, picture block data corresponding for the picture identification of requested picture symbol are carried out combination producing picture, the work obtaining picture can be completed.The method have realize simple, obtain request picture feature fast.
Embodiment one
Fig. 3 is the flow chart of a kind of picture segmentation transmission method in the embodiment of the present invention one.As shown in Figure 3, the method is used for client, comprises the steps S301-S307:
Step S301: send picture request to server;
Step S302: the message data that reception server is sent;
Step S303: resolve the message data of current reception, obtains the picture identification symbol also buffer memory of requested picture corresponding to picture block data, the sequence number of picture block, the check value of picture block and this picture block data;
Step S304: the check value of the picture block parsed in the message data according to current reception verifies that whether the picture block data parsed in same message data are complete, is perform S306, otherwise perform S305;
Step S305: send picture block request to server, picture block request comprises the sequence number of picture block corresponding to incomplete picture block data that current parse goes out and the picture identification symbol of requested picture, and performs step S302;
Step S306: whether the number judging the picture block data of the requested picture of buffer memory is N, is perform step S307, otherwise perform step S302; Wherein, N is the picture block Segmentation Number pre-set;
Step S307: according to predetermined number rule and the sequence number of each picture block, becomes requested picture by N number of picture block data assemblies corresponding for the picture identification of the requested picture of buffer memory symbol.
The method that embodiment one provides, by the check value of picture block, client can verify that whether picture blocks of data is complete quickly and efficiently, and when the data block data verified does not complete, only need send to server the picture block request comprising the sequence number of picture block corresponding to incomplete picture block data that current parse goes out and the picture identification symbol of requested picture.Server upon receiving the request, will resend the image data blocks of data of client-requested, thus effectively improve the efficiency of transmission of picture.
Embodiment two
Fig. 4 is the flow chart of a kind of picture segmentation transmission method in the embodiment of the present invention two, as shown in Figure 4, and the method comprising the steps of S401-S411:
Step S401: user end to server sends picture request;
Step S402: the picture request that server is sent according to client, searches for and obtains requested picture;
Step S403: requested picture segmentation is become N number of picture block by server, and the sequence number of N number of picture block according to the requested picture of predetermined number generate rule; Meanwhile, the check value of each picture block is generated.Wherein, N is the picture block Segmentation Number pre-set;
Step S404: N number of picture block of requested picture is generated as message data and sends to client by server successively; Send to the message data of client to comprise the picture identification symbol of requested picture corresponding to the picture block data of current transmission, the sequence number of picture block, the check value of picture block and this picture block data at every turn.
Step S405: the message data that client reception server is sent;
Step S406: the message data of client to current reception is resolved, obtains the picture identification symbol also buffer memory of requested picture corresponding to picture block data, the sequence number of picture block, the check value of picture block and this picture block data;
Step S407: according to the check value of the picture block parsed in the message data of current reception, client verifies that whether the picture block data parsed in same message data are complete, be perform S410, otherwise perform S408;
Step S408: user end to server sends picture block request, picture block request comprises the sequence number of picture block corresponding to incomplete picture block data that current parse goes out and the picture identification symbol of requested picture, and performs step S409;
Step S409: what server was sent according to client comprises picture identification symbol and the picture block request of picture block sequence number, regenerates message data corresponding to picture block that picture block request specifies and sends to client, and performing step S405;
Step S410: client judges whether the number of the picture block data of the requested picture of buffer memory is N, is perform step S411, otherwise perform step S405; Wherein, N is the picture block Segmentation Number pre-set;
Step S411: N number of picture block data assemblies corresponding for the picture identification of the requested picture of buffer memory symbol, according to predetermined number rule and the sequence number of each picture block, is become requested picture by client.
In the method that embodiment two provides, picture segmentation is transferred to client by server, reaches the network transmission efficiency of raising picture and the object when picture transfer failure fast to client transmissions picture.
Corresponding to the picture segmentation transmission method that above-described embodiment provides, the embodiment of the present invention also provides a kind of picture segmentation transmitting device.As shown in Figure 5, this device is used for server, comprising: picture acquisition module 51, picture segmentation module 52, picture block data transmission blocks 53;
Picture acquisition module 51, for the picture request of sending according to client, searches for and obtains requested picture, and this requested picture is sent to picture segmentation module 52;
Picture segmentation module 52, for requested picture segmentation is become N number of picture block, and the sequence number of N number of picture block according to the requested picture of predetermined number generate rule, and the picture identification of requested picture is accorded with, the sequence number buffer memory of each picture block data and each picture block; Wherein, N is the picture block Segmentation Number pre-set;
Picture block data transmission blocks 53, the N number of picture block for requested picture picture segmentation module 52 obtained is generated as message data successively and sends to client; Send to the message data of client to comprise the picture identification symbol of requested picture corresponding to the picture block data of current transmission, the sequence number of picture block and this picture block data at every turn.Like this, each for N picture block just according to the picture block data in message data and relevant information, can be synthesized asked picture according to predetermined number rule by the client receiving message data.
In one embodiment, for a kind of picture segmentation transmitting device of server, as shown in Figure 6, picture block data acquisition module 61 is also comprised;
Picture segmentation module 52, also for after requested picture segmentation is become N number of picture block, generates the check value of each picture block and the check value of each picture block of buffer memory; Wherein, the check value of picture block is size or the MD5 value of picture block data;
Picture block data acquisition module 61, for the picture block request comprising picture identification symbol and picture block sequence number of sending according to client, the check value of the picture block data that this picture block request obtaining picture segmentation module 52 buffer memory is specified and picture block, and the picture identification of requested picture corresponding to the picture block data of acquisition, the check value of picture block, the sequence number of picture block and this picture block data symbol is sent to picture block data transmission blocks 53;
Picture block data transmission blocks 53, is also generated as message data for the picture identification symbol of requested picture corresponding to picture block data, the check value of picture block, the sequence number of picture block and this picture block data sent by picture block data acquisition module 61 and sends to client.
The embodiment of the present invention also provides a kind of picture segmentation transmitting device, and as shown in Figure 7, this device is used for client, comprising: request module 71, receiver module 72, parsing module 73, the first judge module 74 and composite module 75;
Request module 71, for receiving the picture request of user, and sends to server by picture request;
Receiver module 72, for the message data that reception server is sent, and sends to parsing module 73;
Parsing module 73, for resolving the message data of current reception, obtain the picture identification symbol of requested picture corresponding to picture block data, the sequence number of picture block and this picture block data and buffer memory, and send counting instruction to the first judge module 74 afterwards buffer memory is complete;
First judge module 74, for making current count value M=M+1 according to counting instruction, judging whether M is N, is subsequently, makes M=0 and send combined command to composite module 75; Wherein, M is the number of the picture block data of the requested picture of current buffer memory, and initial value is 0; N is the picture block Segmentation Number pre-set;
Composite module 75, for after receiving the combined command that the first judge module 74 sends, combines the sequence number of N number of picture block data of parsing module 73 buffer memory according to predetermined number rule and each picture block.
In one embodiment, as shown in Figure 8, a kind of picture segmentation transmitting device for client also comprises: the second judge module 81, picture block request module 82;
The check value of the picture block parsed in the message data of parsing module 73 also for the current reception of buffer memory, and the check value of the picture block data parsed in the message data of current reception and picture block is sent to the second judge module 81; First instruction of parsing module 73 also for sending according to the second judge module 81, sends counting instruction to the first judge module 74;
Second judge module 81, for verifying that whether the picture block data received are complete according to the check value of the picture block received simultaneously, be send the first instruction to parsing module 73, otherwise send the second instruction of the check value comprising the picture block that current authentication uses to picture block request module 82;
Picture block request module 82, for the check value according to the picture block in the second instruction received, obtain the picture identification symbol of requested picture corresponding to the check value of this picture block of parsing module 73 buffer memory and the sequence number of picture block, send the picture block request of the sequence number of picture identification symbol containing the requested picture obtained and picture block to server.
The picture segmentation transmitting device that the embodiment of the present invention provides, by picture segmentation is become multiple picture block, and be each picture block numbering, make when picture transfer failure, the picture block data of bust this only need resend to client by server, again whole picture need not be retransmitted, thus reach the object improving picture transfer efficiency.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (9)

1. a picture segmentation transmission method, is characterized in that, for server, comprising:
Step S11: the picture request of sending according to client, searches for and obtains requested picture;
Step S12: described requested picture segmentation is become N number of picture block, and according to predetermined number generate rule the sequence number of N number of picture block of requested picture; Wherein, N is the picture block Segmentation Number pre-set;
Step S13: N number of picture block of described requested picture is generated as message data successively and sends to client; Send to the message data of client to comprise the picture identification symbol of requested picture corresponding to the picture block data of current transmission, the sequence number of picture block and this picture block data at every turn.
2. a kind of picture segmentation transmission method as claimed in claim 1, it is characterized in that, described step S12 also comprises: the check value generating each picture block;
Described message data also comprises the check value of picture block;
After described step S13, also comprise step S14: that sends according to client comprises picture identification symbol and the picture block request of picture block sequence number, regenerate message data corresponding to picture block that described picture block request specifies and send to client.
3. a kind of picture segmentation transmission method as claimed in claim 2, is characterized in that, the check value of described picture block is size or the MD5 value of picture block data.
4. a picture segmentation transmission method, is characterized in that, for client, comprising:
Step S21: send picture request to server;
Step S22: the message data that reception server is sent;
Step S23: resolve the message data of current reception, obtains the picture identification symbol of requested picture corresponding to picture block data, the sequence number of picture block and this picture block data and buffer memory;
Step S24: whether the number judging the picture block data of the requested picture of buffer memory is N, is perform step S25, otherwise perform step S22; Wherein, N is the picture block Segmentation Number pre-set;
Step S25: according to predetermined number rule and the sequence number of each picture block, becomes described requested picture by N number of picture block data assemblies corresponding for the picture identification of the requested picture of buffer memory symbol.
5. a kind of picture segmentation transmission method as claimed in claim 4, it is characterized in that, described step S23 comprises: resolve the message data of current reception, obtains the picture identification symbol also buffer memory of requested picture corresponding to picture block data, the sequence number of picture block, the check value of picture block and this picture block data;
After described step S23, before step S24, also comprise:
Step S31: the check value of the picture block parsed in the message data according to current reception verifies that whether the picture block data parsed in same message data are complete, is perform S24, otherwise perform S32;
Step S32: send picture block request to server, described picture block request comprises the sequence number of picture block corresponding to incomplete picture block data that current parse goes out and the picture identification symbol of requested picture.
6. a picture segmentation transmitting device, is characterized in that, for server, comprising: picture acquisition module, picture segmentation module, picture block data transmission blocks;
Described picture acquisition module, for the picture request of sending according to client, searches for and obtains requested picture, and this requested picture is sent to picture segmentation module;
Described picture segmentation module, for described requested picture segmentation is become N number of picture block, and according to predetermined number generate rule the sequence number of N number of picture block of requested picture, and the picture identification of requested picture is accorded with, the sequence number buffer memory of each picture block data and each picture block; Wherein, N is the picture block Segmentation Number pre-set;
Described picture block data transmission blocks, the N number of picture block for the requested picture described picture segmentation module obtained is generated as message data successively and sends to client; Send to the message data of client to comprise the picture identification symbol of requested picture corresponding to the picture block data of current transmission, the sequence number of picture block and this picture block data at every turn.
7. a kind of picture segmentation transmitting device as claimed in claim 6, is characterized in that, also comprise picture block data acquisition module;
Described picture segmentation module, also for after described requested picture segmentation is become N number of picture block, generates the check value of each picture block and the check value of each picture block of buffer memory; The check value of described picture block is size or the MD5 value of picture block data;
Described picture block data acquisition module, for the picture block request comprising picture identification symbol and picture block sequence number of sending according to client, the check value of the picture block data that this picture block request obtaining described picture segmentation module buffer memory is specified and picture block, and the picture identification of requested picture corresponding to the picture block data of acquisition, the check value of picture block, the sequence number of picture block and this picture block data symbol is sent to described picture block data transmission blocks;
Described picture block data transmission blocks, is also generated as message data for the picture identification symbol of requested picture corresponding to picture block data, the check value of picture block, the sequence number of picture block and this picture block data sent by described picture block data acquisition module and sends to client.
8. a picture segmentation transmitting device, is characterized in that, for client, comprising: request module, receiver module, parsing module, the first judge module and composite module;
Described request module, for receiving the picture request of user, and sends to server by described picture request;
Described receiver module, for the message data that reception server is sent, and sends to described parsing module;
Described parsing module, for resolving the message data of current reception, obtain the picture identification symbol of requested picture corresponding to picture block data, the sequence number of picture block and this picture block data and buffer memory, and send counting instruction to described first judge module afterwards buffer memory is complete;
Described first judge module, for making current count value M=M+1 according to described counting instruction, judges whether M is N, is subsequently, makes M=0 and sends combined command to described composite module; Wherein, M is the number of the picture block data of the requested picture of current buffer memory, and initial value is 0; N is the picture block Segmentation Number pre-set;
Described composite module, for after receiving the combined command that described first judge module sends, combines the sequence number of N number of picture block data of described parsing module buffer memory according to predetermined number rule and each picture block.
9. a kind of picture segmentation transmitting device as claimed in claim 8, is characterized in that, also comprise: the second judge module, picture block request module;
The check value of the picture block parsed in the message data of described parsing module also for the current reception of buffer memory, and the check value of the picture block data parsed in the message data of current reception and picture block is sent to the second judge module; First instruction of described parsing module also for sending according to described second judge module, sends counting instruction to described first judge module;
Described second judge module, for verifying that whether the picture block data received are complete according to the check value of the picture block received simultaneously, be send the first instruction to described parsing module, otherwise send the second instruction of the check value comprising the picture block that current authentication uses to described picture block request module;
Described picture block request module, for the check value according to the picture block in described second instruction received, obtain the picture identification symbol of requested picture corresponding to the check value of this picture block of described parsing module buffer memory and the sequence number of picture block, send the picture block request of the sequence number of picture identification symbol containing the requested picture obtained and picture block to server.
CN201510417243.XA 2015-07-15 2015-07-15 Picture segmentation transmission method and device Pending CN105119967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510417243.XA CN105119967A (en) 2015-07-15 2015-07-15 Picture segmentation transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510417243.XA CN105119967A (en) 2015-07-15 2015-07-15 Picture segmentation transmission method and device

Publications (1)

Publication Number Publication Date
CN105119967A true CN105119967A (en) 2015-12-02

Family

ID=54667852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510417243.XA Pending CN105119967A (en) 2015-07-15 2015-07-15 Picture segmentation transmission method and device

Country Status (1)

Country Link
CN (1) CN105119967A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019057023A1 (en) * 2017-09-20 2019-03-28 中兴通讯股份有限公司 Data recovery method, sending/receiving apparatus, and computer-readable storage medium
CN109889566A (en) * 2018-12-27 2019-06-14 北京奇安信科技有限公司 Suitable for the photograph document handling method and device under weak net environment
CN110134350A (en) * 2019-05-23 2019-08-16 宜春宜联科技有限公司 A kind of mimeograph documents segmentation transmission method
CN111862412A (en) * 2020-07-21 2020-10-30 上海茂声智能科技有限公司 Picture obtaining method and device for intelligent door lock and intelligent door lock system
CN112350995A (en) * 2020-09-30 2021-02-09 山东众阳健康科技集团有限公司 Image processing method, device, equipment and storage medium
CN113190301A (en) * 2021-03-30 2021-07-30 武汉高德红外股份有限公司 User interface operation implementation method of FPGA platform
CN115514494A (en) * 2022-09-16 2022-12-23 长城汽车股份有限公司 Image transmission method and device, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119319A (en) * 2007-09-19 2008-02-06 腾讯科技(深圳)有限公司 Method, transmitting/receiving device and system against lost packet in data transmission process
CN102075741A (en) * 2010-12-14 2011-05-25 北京华环电子股份有限公司 Image transmission method, terminal and system
CN102609935A (en) * 2011-12-15 2012-07-25 深圳鼎识科技有限公司 System for processing and transmitting document image and method thereof
CN103138871A (en) * 2011-11-23 2013-06-05 毕书清 Server data processing system and method of application program of mobile communication system
CN103139227A (en) * 2011-11-23 2013-06-05 毕书清 Application program data transmitting system and application program data transmitting method applied in mobile terminal
US20150023408A1 (en) * 2010-01-18 2015-01-22 Sony Corporation Image processing apparatus and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119319A (en) * 2007-09-19 2008-02-06 腾讯科技(深圳)有限公司 Method, transmitting/receiving device and system against lost packet in data transmission process
US20150023408A1 (en) * 2010-01-18 2015-01-22 Sony Corporation Image processing apparatus and method
CN102075741A (en) * 2010-12-14 2011-05-25 北京华环电子股份有限公司 Image transmission method, terminal and system
CN103138871A (en) * 2011-11-23 2013-06-05 毕书清 Server data processing system and method of application program of mobile communication system
CN103139227A (en) * 2011-11-23 2013-06-05 毕书清 Application program data transmitting system and application program data transmitting method applied in mobile terminal
CN102609935A (en) * 2011-12-15 2012-07-25 深圳鼎识科技有限公司 System for processing and transmitting document image and method thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019057023A1 (en) * 2017-09-20 2019-03-28 中兴通讯股份有限公司 Data recovery method, sending/receiving apparatus, and computer-readable storage medium
CN109889566A (en) * 2018-12-27 2019-06-14 北京奇安信科技有限公司 Suitable for the photograph document handling method and device under weak net environment
CN110134350A (en) * 2019-05-23 2019-08-16 宜春宜联科技有限公司 A kind of mimeograph documents segmentation transmission method
CN110134350B (en) * 2019-05-23 2022-08-23 宜春宜联科技有限公司 Print file segmentation and transmission method
CN111862412A (en) * 2020-07-21 2020-10-30 上海茂声智能科技有限公司 Picture obtaining method and device for intelligent door lock and intelligent door lock system
CN112350995A (en) * 2020-09-30 2021-02-09 山东众阳健康科技集团有限公司 Image processing method, device, equipment and storage medium
CN113190301A (en) * 2021-03-30 2021-07-30 武汉高德红外股份有限公司 User interface operation implementation method of FPGA platform
CN115514494A (en) * 2022-09-16 2022-12-23 长城汽车股份有限公司 Image transmission method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN105119967A (en) Picture segmentation transmission method and device
CN103259797B (en) data file transmission method and platform
CN104661172A (en) Extended data transmission method and extended data transmission system based on Bluetooth low power consumption
CN103841111A (en) Method for preventing data from being submitted repeatedly and server
CN105450266A (en) Method, terminal and system for short-distance transmission of data
CN102685730B (en) Method for transmitting context information of user equipment (UE) and mobility management entity (MME)
AU2018286249B2 (en) Communication method, apparatus, and computer-readable storage medium
CN104821940A (en) Method and equipment for sending portal redirected address
KR20210002117A (en) Method for transmitting downlink feedback information, base station and terminal device
CN105703875A (en) Message transmission method, device and system
CN105117401A (en) Method, device and system for parallel transmission of pictures
CN105704207A (en) Method for generating unique identifier, terminal and network side
CN104967663A (en) File transmission method and system, file sending device, and file receiving device
CN105119968A (en) Picture transmission method and device
CN105281940A (en) Method, device and system of HELLO message interaction on the basis of NETCONF (The Network Configuration Protocol)
WO2017177822A1 (en) Node selection method and apparatus, and node
CN103516789A (en) Method and system for managing data transmission from office network to production network
EP3309985B1 (en) Transmission method and user equipment
KR20190018432A (en) Signaling of what version information to use for byte-range file recovery
EP3038390B1 (en) Processing method and apparatus for signaling tracing
CN105828136A (en) Method and system for connection of digital TV set-top box and mobile device
CN104935650A (en) File transmission method, system and method
CN104899537A (en) Data transmission method and electronic equipment
CN104717065A (en) Short message certification information submitting method, device and system and terminal device
CN104735106A (en) Node transmission method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151202

RJ01 Rejection of invention patent application after publication