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

File transmission method and file transmission device Download PDF

Info

Publication number
CN102663133B
CN102663133B CN201210132748.8A CN201210132748A CN102663133B CN 102663133 B CN102663133 B CN 102663133B CN 201210132748 A CN201210132748 A CN 201210132748A CN 102663133 B CN102663133 B CN 102663133B
Authority
CN
China
Prior art keywords
file
drawing interface
text
page
interface file
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.)
Active
Application number
CN201210132748.8A
Other languages
Chinese (zh)
Other versions
CN102663133A (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

Landscapes

  • Information Transfer Between Computers (AREA)

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 the applied environment such as video conferencing system, instantaneous communication system, all need to carry out sharing of document.
For user, user wishes can see shared document content as early as possible.
The implementation that current shared document is general is: terminal utilizes virtual printing technology, is Drawing interface file, then Drawing interface file is sent to other-end by shared server by document subject feature vector; Above-mentioned other-end shows after reception Drawing interface file, thus completes sharing of document.
Inventor finds in the process realizing the embodiment of the present invention: after document is converted to Graphics Device Interface file by virtual printer, the size of Graphics Device Interface file is often nearly a hundred times large than document, in network transfer speeds one timing, therefore shared speed also have dropped nearly a hundred times; Therefore the shared speed of document is slow.For those as video conferencing system, instantaneous communication system etc., the applied environment higher to requirement of real-time, the shared speed of document is slow particularly crucial.
Summary of the invention
Embodiments provide a kind of document sending method and device, promote document sharing speed.
A kind of document sending method, comprising:
Determine the file size needing the text sent;
Described text is converted to Drawing interface file, and determines whether the file size of a page of Drawing interface file is less than the file size of described text;
If the file size of Drawing interface file page is less than the file size of described text, then to the Drawing interface file setting quantity page before the shared destination of text sends described Drawing interface file; The size of the Drawing interface file of the front setting quantity page of described Drawing interface file is less than the file size of described text.
A kind of file dispensing device, comprising:
Document determining unit, for determining the file size needing the text sent;
Converting unit, for being converted to Drawing interface file by described text;
Relation determination unit, whether the file size for the page determining Drawing interface file is less than the file size of described text;
Sending controling unit, if the file size being less than described text for the file size of a page of Drawing interface file, then to the Drawing interface file setting quantity page before the shared destination of text sends described Drawing interface file; The size of the Drawing interface file of the front setting quantity page of described Drawing interface file is less than the file size of described text.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages: do not need once to send whole Drawing interface files, only have sent the Drawing interface file of the front setting quantity page of Drawing interface file, the file size sent first is less, therefore can realize text presenting in time at shared destination, thus improve lifting document sharing speed.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly introduced, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The method flow schematic diagram that Fig. 1 provides for the embodiment of the present invention;
The other method schematic flow sheet that Fig. 2 provides for the embodiment of the present invention;
The apparatus structure schematic diagram that Fig. 3 provides for the embodiment of the present invention;
Another apparatus structure schematic diagram that Fig. 4 provides for the embodiment of the present invention.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of document sending method, as shown in Figure 1, comprising:
101: determine the file size needing the text sent;
102: above-mentioned text is converted to Drawing interface file, and determine whether the file size of a page of Drawing interface file is less than the file size of above-mentioned text;
A page of above-mentioned Drawing interface file is: first page of above-mentioned Drawing interface file.Can also get other page beyond first page in practical application except getting first page, the embodiment of the present invention will not limit.
103: if the file size of Drawing interface file page is less than the file size of above-mentioned text, then to the Drawing interface file setting quantity page before the shared destination of text sends above-mentioned Drawing interface file; The size of the Drawing interface file of the front setting quantity page of described Drawing interface file is less than the file size of described text.
Adopt above method, do not need once to send whole Drawing interface files, only have sent the Drawing interface file of the front setting quantity page of Drawing interface file, the file size sent first is less, therefore can realize text presenting in time at shared destination, thus improve lifting document sharing speed.
It should be noted that: as long as above-mentioned setting quantity page is fewer than Drawing interface file total page number, just can compare and send whole Drawing interface file to share speed faster.
It should be noted that in addition, text defined in the present embodiment has specificity compared with alternative document, text belongs to by extensively compatible file layout, another its does not have paging, is just provided with the attribute of the page of Drawing interface file in the present embodiment by being converted to Drawing interface file later.
Preferably, the value of above-mentioned setting quantity is: after the business of the file size of above-mentioned text and the file size of an above-mentioned page rounds with 1 and.
Lift two examples:
Text one: PL=904K, the Drawing interface file 75.6M. first page T1L=259K of output;
Text two: PL=147K, the Drawing interface file 12.1M. first page T1L=260K of output;
Due to 904K > 259K, by first page transmission in the past first, now, if transmitted in the past by entire chapter text 904K immediately, on link, required time is likely oversize, and affects user's browsing lower one page.Therefore, the number of pages that can get is: N=PL/T1L+1 page, makes user in the process browsing these pages, acquisition surge time transmits whole text, wish that the effect reached is that user just browses to N+1 page, transmission text in the past also loaded.
Further, also comprise after sending the Drawing interface file setting quantity page before above-mentioned Drawing interface file and completing: the shared destination to above-mentioned text sends above-mentioned text, for be converted to Drawing interface file except other pages set before above-mentioned except quantity page.It should be noted that, after 103 steps execute, except the present embodiment adopt send text file except, the Drawing interface file changed can also be sent.Adopt flow process shown in Fig. 1 can realize text presenting in time at shared destination, the optional send mode of subsequent file is a lot, and the embodiment of the present invention will not limit.
Further, this gives the implementation of the less situation of Drawing interface file itself.Said method also comprises: if the file size of Drawing interface file page is greater than the file size of above-mentioned text, then the shared destination to text sends above-mentioned text, is converted to Drawing interface file for above-mentioned shared destination.
As shown in Figure 2, the embodiment of the present invention additionally provides to adopt virtual printer that text is printed to illustrating of Drawing interface file, specific as follows:
Step S101: input needs the text shared, note text file size is TL, enters step S102;
Step S102: virtual printing is carried out to above-mentioned text, output pattern interface document, this Drawing interface file is e-file, and the Drawing interface file size corresponding to first page of note Drawing interface file is P1L, enters step S103;
Step S103: the size comparing P1L and TL, if P1L is greater than TL, then enters step S104, otherwise enters step S108;
Step S104: the terminal of other participation video conferences that directly send text file or instant messaging (Instant Messenger, IM) user place terminal, enter step S105;
Step S105: after each terminal receives text, separately text is input to respective virtual printer and prints, output pattern interface document, enters step S106;
Step S106: the terminal of video conferencing system or IM terminal loads Drawing interface file, enter step S107;
Step S107: share complete.
Step S108: the business of note TL and P1L rounds+1 and is: N=TL/P1L+1, enters step S109;
Step S109: 1st ~ N page Drawing interface file is transferred to each video conference terminal or IM client, enters step S1110;
Step S110: the terminal of video conferencing system or IM terminal loads 1st ~ N page Drawing interface file, enter step S102;
Step S111: the terminal or the IM terminal that text are sent to each video conferencing system, enter step S112;
Step S112: text is input to virtual printer and prints by each terminal respectively, output pattern interface document, enters step S113;
Step S113: video conferencing system or IM terminal loads N+1 page, to all Drawing interface files at end, enter step S107;
Below provide two examples to be illustrated flow process shown in Fig. 2, specific as follows:
Example 1:
Suppose to need the text shared to be 147KB, JPEG (joint photographic experts group) (JointPhotographic Experts Group, the JPG) file of printout is 260KB.
Step S101: input needs the text printed, note text file size is TL=147KB, enters step S102;
Step S102: carry out virtual printing, output pattern interface document, the Drawing interface file size of note corresponding to first page is P1L=260KB, enters step S103;
Step S103: the size comparing P1L and TL, if P1L is more than or equal to TL, then enters step S104, otherwise enters step S108;
Step S104: directly send text file other video conference terminals or IM user, enters step S105;
Step S105: text is input to virtual printer and prints by each terminal respectively, output pattern interface document, enters step S106;
Step S106: video conferencing system or IM terminal loads Drawing interface file, enter step S107;
Step S107: share complete.
Example 2:
Suppose to need the text shared to be 941KB, the JPG file of printout is 260KB.
Step S101: input needs the text printed, note text file size is TL=941KB, enters step S102;
Step S102: carry out virtual printing, output pattern interface document, the Drawing interface file size of note corresponding to first page is P1L=260KB, enters step S103;
Step S103: the size comparing P1L and TL, if P1L is more than or equal to TL, then enters step S104, otherwise enters step S108;
Step S108: the multiple+1 of note TL and P1L is: N=TL/P1L+1=941/260+1=4, enters step S109;
Step S109: 1st ~ 4 pages of Drawing interface files are transferred to each video conference terminal or IM client, enter step S1110;
Step S110: video conferencing system or IM terminal loads 1st ~ 4 pages of Drawing interface files, enter step S102;
Step S111: each video conference terminal or the IM terminal that text are sent to other, enter step S112;
Step S112: text is input to virtual printer and prints by each terminal respectively, output pattern interface document, enters step S113;
S113: video conferencing system or IM terminal loads the 5th page, to all Drawing interface files at end, enter step S107;
Adopt above method, do not need once to send whole Drawing interface files, only have sent the Drawing interface file of the front setting quantity page of Drawing interface file, the file size sent first is less, therefore can realize text presenting in time at shared destination, thus improve lifting document sharing speed.
The embodiment of the present invention additionally provides a kind of file dispensing device, as shown in Figure 3, comprising:
Document determining unit 301, for determining the file size needing the text sent;
Converting unit 302, for being converted to Drawing interface file by above-mentioned text;
Relation determination unit 303, whether the file size for the page determining Drawing interface file is less than the file size of above-mentioned text;
Sending controling unit 304, if the file size being less than above-mentioned text for the file size of a page of Drawing interface file, then to the Drawing interface file setting quantity page before the shared destination of text sends above-mentioned Drawing interface file; The size of the Drawing interface file of the front setting quantity page of described Drawing interface file is less than the file size of described text.
The file dispensing device that the embodiment of the present invention provides can be terminal also can be shared server, and the embodiment of the present invention will not limit this.Adopt above scheme, do not need once to send whole Drawing interface files, only have sent the Drawing interface file of the front setting quantity page of Drawing interface file, the file size sent first is less, therefore can realize text presenting in time at shared destination, thus improve lifting document sharing speed.
As shown in Figure 4, said apparatus also comprises:
Computing unit 401, after rounding for the business of the file size of the file size and an above-mentioned page that calculate above-mentioned text with 1 and, obtain the value of above-mentioned setting quantity.
Alternatively, above-mentioned sending controling unit 304, after Drawing interface file also for setting quantity page before sending above-mentioned Drawing interface file completes, shared destination to above-mentioned text sends above-mentioned text, for being converted to other pages except setting quantity page before above-mentioned of Drawing interface file.
Alternatively, above-mentioned sending controling unit 304, if be also greater than the file size of above-mentioned text for the file size of a page of Drawing interface file, then the shared destination to text sends above-mentioned text, is converted to Drawing interface file for above-mentioned shared destination.
More specifically, a page of above-mentioned Drawing interface file is: first page of above-mentioned Drawing interface file.
It should be noted that in above-mentioned file dispensing device embodiment, included unit is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; 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 realized in above-mentioned each embodiment of the method is that the hardware that can carry out instruction relevant by program completes, corresponding program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
These are only the present invention's preferably embodiment; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the present invention discloses, the change 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 (6)

1. a document sending method, is characterized in that, comprising:
Determine the file size needing the text sent;
Described text is converted to Drawing interface file, and determines whether the file size of a page of Drawing interface file is less than the file size of described text;
If the file size of Drawing interface file page is less than the file size of described text, then to the Drawing interface file setting quantity page before the shared destination of text sends described Drawing interface file; The size of the Drawing interface file of the front setting quantity page of described Drawing interface file is less than the file size of described text; After sending the Drawing interface file setting quantity page before described Drawing interface file and completing, shared destination to described text sends described text, for being converted to other pages except setting quantity page before described of Drawing interface file;
If the file size of Drawing interface file page is greater than the file size of described text, then the shared destination to text sends described text, is converted to Drawing interface file for described shared destination.
2. method according to claim 1, it is characterized in that, the value of described setting quantity is:
After the business of the file size of described text and the file size of a described page rounds with 1 and.
3. method according to claim 2, it is characterized in that, a page of described Drawing interface file is: first page of described Drawing interface file.
4. a file dispensing device, is characterized in that, comprising:
Document determining unit, for determining the file size needing the text sent;
Converting unit, for being converted to Drawing interface file by described text;
Relation determination unit, whether the file size for the page determining Drawing interface file is less than the file size of described text;
Sending controling unit, if the file size being less than described text for the file size of a page of Drawing interface file, then to the Drawing interface file setting quantity page before the shared destination of text sends described Drawing interface file; The size of the Drawing interface file of the front setting quantity page of described Drawing interface file is less than the file size of described text; After sending the Drawing interface file setting quantity page before described Drawing interface file and completing, shared destination to described text sends described text, for being converted to other pages except setting quantity page before described of Drawing interface file;
If the file size of Drawing interface file page is greater than the file size of described text, then the shared destination to text sends described text, is converted to Drawing interface file for described shared destination.
5. device according to claim 4, is characterized in that, also comprise:
Computing unit, after rounding for the business of the file size of the file size and a described page that calculate described text with 1 and, obtain the value of described setting quantity.
6. device according to claim 4 or 5, is characterized in that,
A page of described Drawing interface file is: first page of described Drawing 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 CN102663133A (en) 2012-09-12
CN102663133B true 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)

Families Citing this family (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
CN104834643B (en) * 2014-02-11 2019-06-14 腾讯科技(深圳)有限公司 A kind of quick 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

Also Published As

Publication number Publication date
CN102663133A (en) 2012-09-12

Similar Documents

Publication Publication Date Title
CN103179156B (en) A kind of picture sharing method, system and equipment
CN105991731A (en) Method for obtaining information, intelligent terminal and server side
CN109981751A (en) A kind of document transmission method and system, computer equipment and storage medium
CN104796337A (en) Method and device for forwarding message
CN101834765B (en) System and method for remote file transfer
CN103095684A (en) Method obtaining attention user aggregate information, device and system
CN105100158A (en) Message pushing and obtaining methods and apparatuses
CN102663133B (en) File transmission method and file transmission device
CN103780483A (en) Method, system and device for obtaining resource information of terminal device of Internet of Thingss
US20150296039A1 (en) Method and system for document processing in wireless communication apparatus
CN107277780A (en) A kind of broadcast message sending method and device, mobile terminal
US10791049B2 (en) Method for distributing transmission path information and routing bridges
CN110650546B (en) File transmission method, device, storage medium and terminal
CN102387136A (en) System and method for converting distributed PPT (Power Point) files into swf (small web format) files
CN103631540A (en) Method for sharing equipment printing machine
CN208722177U (en) Cloud printing equipment
CN102281179A (en) VPN tunnel relay acceleration technology
CN102299937A (en) Method and system for distributing clock server based on network
CN111278063B (en) Data distribution transmission method, network main node MN, network auxiliary node SN and storage medium
CN104423786A (en) Implementation method for asynchronously uploading multiple pictures based on Ajax (Asynchronous Java Scrip and XML) technology
CN105812390A (en) Information issuing and transmitting system based on resource server and local area network server cluster architecture
CN103368832B (en) Hybrid switching network slot allocation method based on sliding window
CN205486046U (en) Wireless photo print system
CN103546513B (en) The method and device of communication between a kind of customer terminal webpage
CN202306547U (en) Document conversion system

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.