CN102663133A - File transmission method and file transmission device - Google Patents

File transmission method and file transmission device Download PDF

Info

Publication number
CN102663133A
CN102663133A CN2012101327488A CN201210132748A CN102663133A CN 102663133 A CN102663133 A CN 102663133A CN 2012101327488 A CN2012101327488 A CN 2012101327488A CN 201210132748 A CN201210132748 A CN 201210132748A CN 102663133 A CN102663133 A CN 102663133A
Authority
CN
China
Prior art keywords
file
graphic interface
text
page
size
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.)
Granted
Application number
CN2012101327488A
Other languages
Chinese (zh)
Other versions
CN102663133B (en
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.)
Vtron Group Co Ltd
Original Assignee
Vtron Technologies 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 Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201210132748.8A priority Critical patent/CN102663133B/en
Publication of CN102663133A publication Critical patent/CN102663133A/en
Application granted granted Critical
Publication of CN102663133B publication Critical patent/CN102663133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a file transmission method and a file transmission device. The file transmission method comprises the steps of determining a file size of a document file to be transmitted; transforming the document file to a graphic interface file, and determining whether the file size of one page of the graphic interface file is smaller than the file size of the document size or not; transmitting the graphic interface file of the front pages with setup quantity of the graphic interface file to a share target end of the document file if the file size of one page of the graphic interface file is smaller than the file size of the document file; and ensuring the size of the graphic interface file of the front pages with the setup quantity of the graphic interface file is smaller than the file size of the document file. The graphic interface file is unnecessary to transmit in one step, only the graphic interface document of the front pages with the setup quantity of the graphic interface file, the file size of the graphic interface file which is transmitted at the first time is small, so that the document file can be presented in time on the share target end, and the document file share speed can be enhanced.

Description

A kind of document sending method and device
Technical field
The present invention relates to communication technical field, particularly a kind of document sending method and device.
Background technology
Under applied environments such as video conferencing system, instantaneous communication system, all need carry out sharing of documents.
For the user, the user hopes to see shared document content as early as possible.
The general implementation of shared document is at present: the terminal utilizes the virtual printing technology, converts document into the graphic interface file, then the graphic interface file is sent to other-end through the share service device; Above-mentioned other-end shows after receiving the graphic interface file, thereby accomplishes sharing of documents.
The inventor finds in realizing the process of the embodiment of the invention: because after document converts the GDI file into through virtual printer; The size of GDI file is often nearly a hundred times big than document; In network transfer speeds one regularly, therefore shared speed also descended nearly a hundred times; Therefore sharing of documents speed is slow.Like video conferencing system, instantaneous communication system etc., to the applied environment that real-time is had relatively high expectations, sharing of documents speed is particularly crucial slowly for those.
Summary of the invention
The embodiment of the invention provides a kind of document sending method and device, promotes document sharing speed.
A kind of document sending method comprises:
Definite file size that needs the text of transmission;
Convert said text into the graphic interface file, and the file size of a page of definite graphic interface file is whether less than the file size of said text;
If the file size of a page of graphic interface file less than the file size of said text, is then sent the graphic interface file of the preceding setting quantity page or leaf of said graphic interface file to the shared destination of text; The size of the graphic interface file of the preceding setting quantity page or leaf of said graphic interface file is less than the file size of said text.
A kind of file dispensing device comprises:
File is confirmed the unit, is used for the file size of the text of definite needs transmission;
Converting unit is used for converting said text into the graphic interface file;
Relation is confirmed the unit, and whether the file size of a page that is used for confirming the graphic interface file is less than the file size of said text;
Sending controling unit is used for if the file size of the page of graphic interface file less than the file size of said text, is then sent the graphic interface file of the preceding setting quantity page or leaf of said graphic interface file to the shared destination of text; The size of the graphic interface file of the preceding setting quantity page or leaf of said graphic interface file is less than the file size of said text.
Can find out from above technical scheme; The embodiment of the invention has the following advantages: do not need once to send whole graphic interface files; Only sent the graphic interface file of the preceding setting quantity page or leaf of graphic interface file; The file size of sending first is less, can realize that therefore text sharing in time appearing of destination, thereby promote document sharing speed.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention; The accompanying drawing of required use is briefly introduced in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skill in the art; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
The method flow synoptic diagram that Fig. 1 provides for the embodiment of the invention;
Another method schematic flow sheet that Fig. 2 provides for the embodiment of the invention;
The apparatus structure synoptic diagram that Fig. 3 provides for the embodiment of the invention;
Another apparatus structure synoptic diagram that Fig. 4 provides for the embodiment of the invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that the present invention is done to describe in detail further below, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making all other embodiment that obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides a kind of document sending method, and is as shown in Figure 1, comprising:
101: definite file size that needs the text of transmission;
102: convert above-mentioned text into the graphic interface file, and the file size of a page of definite graphic interface file is whether less than the file size of above-mentioned text;
A page of above-mentioned graphic interface file is: first page of above-mentioned graphic interface file.Can also get other page beyond first page the page except getting first in the practical application, the embodiment of the invention will not limit.
103: if the file size of a page of graphic interface file less than the file size of above-mentioned text, is then sent the graphic interface file of the preceding setting quantity page or leaf of above-mentioned graphic interface file to the shared destination of text; The size of the graphic interface file of the preceding setting quantity page or leaf of said graphic interface file is less than the file size of said text.
Adopt above method; Do not need once to send whole graphic interface files; Only sent the graphic interface file of the preceding setting quantity page or leaf of graphic interface file; The file size of sending first is less, can realize that therefore text sharing in time appearing of destination, thereby promote document sharing speed.
Need to prove: above-mentioned setting quantity page or leaf is as long as lack than graphic interface file total page number, and it is faster just can to compare the whole graphic interface file-sharing speed of transmission.
Need to prove in addition; The text that is limited in the present embodiment is compared with alternative document has specificity; Text belongs to by the file layout of extensive compatibility; In addition it does not have paging, in the present embodiment through converting the attribute that the graphic interface file has just had the page or leaf of graphic interface file later on into.
Preferably, the value of above-mentioned setting quantity is: the merchant of the file size of the file size of above-mentioned text and an above-mentioned page round the back with 1 with.
Lift two instances:
Text one: PL=904K, first page of T1L=259K of graphic interface file 75.6M. of output;
Text two: PL=147K, first page of T1L=260K of graphic interface file 12.1M. of output;
Because 904K>259K transmits in the past first page earlier, at this moment, if with entire chapter text 904K transmission in the past immediately, required time might be oversize on the link, and influence user's browsing following one page.Therefore, the number of pages that can get is: the N=PL/T1L+1 page or leaf makes the user in browsing the process of these pages; Obtaining surge time transmits whole text; Hope that the effect reach is, the user just browses to the N+1 page or leaf, and transmission text in the past is loaded also.
Further; After the graphic interface file of the preceding setting quantity page or leaf that sends above-mentioned graphic interface file is accomplished, also comprise: the shared destination to above-mentioned text sends above-mentioned text, is used to be converted to other pages except that setting quantity page or leaf before above-mentioned of graphic interface file.Need to prove, after 103 steps execute, except present embodiment adopted send text file, can also send the graphic interface file of having changed.Adopt flow process shown in Figure 1 can realize that text sharing in time appearing of destination, the optional send mode of subsequent file is a lot, and the embodiment of the invention will not limit.
Further, present embodiment has provided the implementation of the less situation of graphic interface file itself.Said method also comprises: if the file size of the page of graphic interface file is greater than the file size of above-mentioned text, then the shared destination to text sends above-mentioned text, is used for above-mentioned shared destination and converts the graphic interface file into.
As shown in Figure 2, the embodiment of the invention also provides with the employing virtual printer text has been printed to illustrating of graphic interface file, and is specific as follows:
Step S101: input needs shared text, and note text file size is TL, gets into step S102;
Step S102: above-mentioned text is carried out virtual printing, the output pattern interface document, this graphic interface file is an e-file, first page of pairing graphic interface file size of note graphic interface file is P1L, gets into step S103;
Step S103: compare the size of P1L and TL,, otherwise get into step S108 if P1L greater than TL, then gets into step S104;
Step S104: the terminal of other participation video conferences that directly send text file or instant messaging (Instant Messenger, IM) user belongs to the terminal, gets into step S105;
Step S105: after each terminal received text, the virtual printer that separately text is input to separately printed, and the output pattern interface document gets into step S106;
Step S106: the terminal of video conferencing system or IM terminal loads graphic interface file get into step S107;
Step S107: shared finishing.
Step S108: the merchant of note TL and P1L rounds+1 be: N=TL/P1L+1, entering step S109;
Step S109: the 1st~N page or leaf graphic interface file transfer to each video conference terminal or IM client, is got into step S1110;
Step S110: the terminal of video conferencing system or IM terminal loads the 1st~N page or leaf graphic interface file get into step S102;
Step S111: text is sent to the terminal or the IM terminal of each video conferencing system, get into step S112;
Step S112: each terminal is input to virtual printer with text respectively and prints, and the output pattern interface document gets into step S113;
Step S113: video conferencing system or IM terminal loads N+1 page or leaf get into step S107 to all graphic interface files at end;
Below provide two instances and come flow process shown in Figure 2 is illustrated, specific as follows:
Instance 1:
Suppose that the text that needs to share is 147KB, (Joint Photographic Experts Group, JPG) file is 260KB in the JPEG of printout.
Step S101: input needs the text of printing, and note text file size is TL=147KB, gets into step S102;
Step S102: carry out virtual printing, the output pattern interface document remembers that first page of pairing graphic interface file size is P1L=260KB, gets into step S103;
Step S103: compare the size of P1L and TL,, otherwise get into step S108 if P1L more than or equal to TL, then gets into step S104;
Step S104: directly send text file other video conference terminals or IM user get into step S105;
Step S105: each terminal is input to virtual printer with text respectively and prints, and the output pattern interface document gets into step S106;
Step S106: video conferencing system or IM terminal loads graphic interface file get into step S107;
Step S107: shared finishing.
Instance 2:
Suppose that the text that needs to share is 941KB, the JPG file of printout is 260KB.
Step S101: input needs the text of printing, and note text file size is TL=941KB, gets into step S102;
Step S102: carry out virtual printing, the output pattern interface document remembers that first page of pairing graphic interface file size is P1L=260KB, gets into step S103;
Step S103: compare the size of P1L and TL,, otherwise get into step S108 if P1L more than or equal to TL, then gets into step S104;
Step S108: multiple+1 of note TL and P1L is: N=TL/P1L+1=941/260+1=4 gets into step S109;
Step S109: the 1st~4 page of graphic interface file transfer to each video conference terminal or IM client, got into step S1110;
Step S110: the 1st~4 page of graphic interface file of video conferencing system or IM terminal loads gets into step S102;
Step S111: text is sent to other each video conference terminal or IM terminal, get into step S112;
Step S112: each terminal is input to virtual printer with text respectively and prints, and the output pattern interface document gets into step S113;
S113: the 5th page of all graphic interface files to the end of video conferencing system or IM terminal loads get into step S107;
Adopt above method; Do not need once to send whole graphic interface files; Only sent the graphic interface file of the preceding setting quantity page or leaf of graphic interface file; The file size of sending first is less, can realize that therefore text sharing in time appearing of destination, thereby promote document sharing speed.
The embodiment of the invention also provides a kind of file dispensing device, and is as shown in Figure 3, comprising:
File is confirmed unit 301, is used for the file size of the text of definite needs transmission;
Converting unit 302 is used for converting above-mentioned text into the graphic interface file;
Relation is confirmed unit 303, and whether the file size of a page that is used for confirming the graphic interface file is less than the file size of above-mentioned text;
Sending controling unit 304 is used for if the file size of the page of graphic interface file less than the file size of above-mentioned text, is then sent the graphic interface file of the preceding setting quantity page or leaf of above-mentioned graphic interface file to the shared destination of text; The size of the graphic interface file of the preceding setting quantity page or leaf of said graphic interface file is less than the file size of said text.
The file dispensing device that the embodiment of the invention provides can be that the terminal also can be the share service device, and the embodiment of the invention will not limit this.Adopt above scheme; Do not need once to send whole graphic interface files; Only sent the graphic interface file of the preceding setting quantity page or leaf of graphic interface file; The file size of sending first is less, can realize that therefore text sharing in time appearing of destination, thereby promote document sharing speed.
As shown in Figure 4, said apparatus also comprises:
Computing unit 401, the merchant of file size who is used to calculate file size and an above-mentioned page of above-mentioned text round the back with 1 with, obtain the value of above-mentioned setting quantity.
Alternatively; Above-mentioned sending controling unit 304; Also be used for after the graphic interface file of the preceding setting quantity page or leaf that sends above-mentioned graphic interface file is accomplished; Shared destination to above-mentioned text sends above-mentioned text, is used to be converted to other pages except that setting quantity page or leaf before above-mentioned of graphic interface file.
Alternatively; Above-mentioned sending controling unit 304; Also be used for if the file size of the page of graphic interface file greater than the file size of above-mentioned text, then the shared destination to text sends above-mentioned text, is used for above-mentioned shared destination and converts the graphic interface file into.
More specifically, above-mentioned graphic interface file page is: first page of above-mentioned graphic interface file.
It should be noted that among the above-mentioned file dispensing device embodiment that each included unit is just divided according to function logic, but is not limited to above-mentioned division, as long as can realize function corresponding; In addition, the concrete title of each functional unit also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition; One of ordinary skill in the art will appreciate that all or part of step that realizes among above-mentioned each method embodiment is to instruct relevant hardware to accomplish through program; Corresponding program can be stored in a kind of computer-readable recording medium; The above-mentioned storage medium of mentioning can be a ROM (read-only memory), disk or CD etc.
More than be merely the preferable embodiment of the present invention; But protection scope of the present invention is not limited thereto; Any technician who is familiar with the present technique field is in the technical scope that the embodiment of the invention discloses, and the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (10)

1. a document sending method is characterized in that, comprising:
Definite file size that needs the text of transmission;
Convert said text into the graphic interface file, and the file size of a page of definite graphic interface file is whether less than the file size of said text;
If the file size of a page of graphic interface file less than the file size of said text, is then sent the graphic interface file of the preceding setting quantity page or leaf of said graphic interface file to the shared destination of text; The size of the graphic interface file of the preceding setting quantity page or leaf of said graphic interface file is less than the file size of said text.
2. according to the said method of claim 1, it is characterized in that the value of said setting quantity is:
The merchant of the file size of the file size of said text and a said page round the back with 1 with.
3. according to the said method of claim 2, it is characterized in that a page of said graphic interface file is: first page of said graphic interface file.
4. according to the said method of claim 1, it is characterized in that, after the graphic interface file of the preceding setting quantity page or leaf that sends said graphic interface file is accomplished, also comprise:
Shared destination to said text sends said text, is used to be converted to other pages except that setting quantity page or leaf before said of graphic interface file.
5. according to the said method of claim 1, it is characterized in that, also comprise:
If the file size of a page of graphic interface file is greater than the file size of said text, then the shared destination to text sends said text, is used for said shared destination and converts the graphic interface file into.
6. a file dispensing device is characterized in that, comprising:
File is confirmed the unit, is used for the file size of the text of definite needs transmission;
Converting unit is used for converting said text into the graphic interface file;
Relation is confirmed the unit, and whether the file size of a page that is used for confirming the graphic interface file is less than the file size of said text;
Sending controling unit is used for if the file size of the page of graphic interface file less than the file size of said text, is then sent the graphic interface file of the preceding setting quantity page or leaf of said graphic interface file to the shared destination of text; The size of the graphic interface file of the preceding setting quantity page or leaf of said graphic interface file is less than the file size of said text.
7. according to the said device of claim 6, it is characterized in that, also comprise:
Computing unit, the merchant of file size who is used to calculate file size and a said page of said text round the back with 1 with, obtain the value of said setting quantity.
8. according to the said device of claim 6, it is characterized in that,
Said sending controling unit; Also be used for after the graphic interface file of the preceding setting quantity page or leaf that sends said graphic interface file is accomplished; Shared destination to said text sends said text, is used to be converted to other pages except that setting quantity page or leaf before said of graphic interface file.
9. according to the said device of claim 6, it is characterized in that,
Said sending controling unit; Also be used for if the file size of the page of graphic interface file greater than the file size of said text; Then the shared destination to text sends said text, is used for said shared destination and converts the graphic interface file into.
10. according to any said device of claim 6 to 9, it is characterized in that,
A page of said graphic interface file is: first page of said graphic interface file.
CN201210132748.8A 2012-04-28 2012-04-28 File transmission method and file transmission device Active CN102663133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210132748.8A CN102663133B (en) 2012-04-28 2012-04-28 File transmission method and file transmission device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210132748.8A CN102663133B (en) 2012-04-28 2012-04-28 File transmission method and file transmission device

Publications (2)

Publication Number Publication Date
CN102663133A true CN102663133A (en) 2012-09-12
CN102663133B CN102663133B (en) 2015-06-24

Family

ID=46772624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210132748.8A Active CN102663133B (en) 2012-04-28 2012-04-28 File transmission method and file transmission device

Country Status (1)

Country Link
CN (1) CN102663133B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309994A (en) * 2013-06-20 2013-09-18 珠海金山办公软件有限公司 Document loading method and system
CN104834643A (en) * 2014-02-11 2015-08-12 腾讯科技(深圳)有限公司 Fast common gateway interface file analysis method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791070A (en) * 2004-12-17 2006-06-21 腾讯科技(深圳)有限公司 Method for transmitting document on network
CN101150537A (en) * 2007-10-10 2008-03-26 中国联合通信有限公司 A file sharing and control method and system for instant messaging conference
CN101697157A (en) * 2009-09-04 2010-04-21 耿学鸿 Electronic document browse processing method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791070A (en) * 2004-12-17 2006-06-21 腾讯科技(深圳)有限公司 Method for transmitting document on network
CN101150537A (en) * 2007-10-10 2008-03-26 中国联合通信有限公司 A file sharing and control method and system for instant messaging conference
CN101697157A (en) * 2009-09-04 2010-04-21 耿学鸿 Electronic document browse processing method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309994A (en) * 2013-06-20 2013-09-18 珠海金山办公软件有限公司 Document loading method and system
CN104834643A (en) * 2014-02-11 2015-08-12 腾讯科技(深圳)有限公司 Fast common gateway interface file analysis method and apparatus
CN104834643B (en) * 2014-02-11 2019-06-14 腾讯科技(深圳)有限公司 A kind of quick common gateway interface file analysis method and apparatus

Also Published As

Publication number Publication date
CN102663133B (en) 2015-06-24

Similar Documents

Publication Publication Date Title
US9007637B2 (en) Generating an alias email address for managing a print job
CN103179156B (en) A kind of picture sharing method, system and equipment
TWI547122B (en) Instant messaging in the folder transfer method and system, instant access to the client
US9092167B2 (en) Systems and methods for managing a print job
CN103338276B (en) A kind of method transmitting data between the network terminal
CN101834765B (en) System and method for remote file transfer
CN103095684B (en) Obtain and pay close attention to the method for user's aggregation information, Apparatus and system
CN104391664A (en) Self-service print system for realizing cross-segment communication between printer and print server
CN102542018A (en) Web online file viewing system and file conversion device
CN100563197C (en) A kind of image sharing system and method
CN103401933B (en) The method and system that a kind of resource information and corresponding resource file batch are uploaded
CN103885997A (en) Dynamic page information displaying method and dynamic page information displaying system
CN104539510A (en) Multi-protocol-based information pushing system and method
CN104301438A (en) File uploading method
CN105100158A (en) Message pushing and obtaining methods and apparatuses
CN102663133A (en) File transmission method and file transmission device
CN103220343B (en) Big data multi-system retransmission method
CN102594886A (en) Method and device for direct communication between browsers, and communication system
CN102387136A (en) System and method for converting distributed PPT (Power Point) files into swf (small web format) files
CN104346109A (en) Method and device for home shared printing
CN103631540A (en) Method for sharing equipment printing machine
CN103685326A (en) WEB concurrent data transmission method and WEB application system
CN102752397A (en) Method and system for sharing files in enterprise instant messaging system
CN102281179A (en) VPN tunnel relay acceleration technology
US7624162B2 (en) Methods, systems, devices and computer-readable media for accessing network accessible devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Kezhu road high tech Industrial Development Zone, Guangzhou city of Guangdong Province, No. 233 510670

Patentee after: Wei Chong group Limited by Share Ltd

Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No.

Patentee before: Guangdong Weichuangshixun Science and Technology Co., Ltd.