CN104615391A - File previewing method, device and system - Google Patents

File previewing method, device and system Download PDF

Info

Publication number
CN104615391A
CN104615391A CN201510056308.2A CN201510056308A CN104615391A CN 104615391 A CN104615391 A CN 104615391A CN 201510056308 A CN201510056308 A CN 201510056308A CN 104615391 A CN104615391 A CN 104615391A
Authority
CN
China
Prior art keywords
file
preview
format conversion
client
preview 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.)
Pending
Application number
CN201510056308.2A
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.)
Nine Jade (beijing) Technology Co Ltd
Original Assignee
Nine Jade (beijing) 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 Nine Jade (beijing) Technology Co Ltd filed Critical Nine Jade (beijing) Technology Co Ltd
Priority to CN201510056308.2A priority Critical patent/CN104615391A/en
Publication of CN104615391A publication Critical patent/CN104615391A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a file previewing method, device and system. The file previewing method, device and system aim to enhance the convenience for file preview. The method includes the steps that a to-be-previewed file sent by a client side is received; the received to-be-previewed file is converted into a format capable of being presented at the client side, and a file after format conversion is obtained; the file after format conversion is sent to the client side, and the file after format conversion can be presented at the client side. The file previewing method, device and system can complete on-line conversion on the to-be-previewed file and sends the file after conversion to the client side, so the client side can preview the file without depending on third-party application, the waste of terminal storage resources is avoided, the time of the user is saved and preview convenience of the file is enhanced.

Description

A kind of previewing file method, Apparatus and system
Technical field
The present invention relates to the communications field, particularly a kind of previewing file method, Apparatus and system.
Background technology
In prior art, annex is the important component part in Email, and annex can be sent in the mailbox of addressee with the various formatted file such as doc, pdf, excel.Due to attachment files different formats, if get the mail annex on mobile terminals, because most of mobile terminal itself supports that the file layout of preview is little, often occurring cannot the situation of annex received by preview.User can only realize preview by downloading third-party application, but some user do not know the third-party application that needs to install any class.
In prior art, for solving the problem, Mail Clients provider is according to the attachment format of mail, and providing can the link of third-party application of such annex of preview, and user is by third-party application preview Email attachment.This mode needs to depend on third-party application, could preview Email attachment.For mobile terminal preview file, cause great inconvenience, waste the storage resources of user's plenty of time and terminal.
Summary of the invention
The invention provides a kind of previewing file method, Apparatus and system, in order to increase the convenience of previewing file.
According to a first aspect of the present invention, the invention provides a kind of previewing file method, comprising:
What receive client transmission treats preview file;
By the form that preview file is converted to client and can presents for the treatment of received, obtain the file after format conversion;
File after format conversion is sent to client, the file after making client present described format conversion.
In one embodiment, the described form that preview file is converted to client and can presents for the treatment of that will receive, obtains the file after format conversion, comprising:
Treat that preview file carries out virtual printing to what receive, obtain the picture file that virtual printing generates.
In one embodiment, described method also comprises:
Receive the file identification that client sends, described file identification is used for mark and treats preview file;
Preview file is treated according to the file identification inquiry received is corresponding with described file identification;
When do not inquire corresponding with described file identification until preview file time, notify described client do not inquire described file identification corresponding treat preview file, described client is sent and treats preview file.
In one embodiment, described method also comprises:
When inquire corresponding with described file identification until preview file time, treat according to described the format conversion state that preview file is corresponding, described in judgement, treat preview file whether format conversion success;
When described when format conversion is successful for preview file, the file described in acquisition after the format conversion that preview file is corresponding, sends to client by the file after described format conversion.
In one embodiment, described to receive treat that preview file carries out virtual printing, obtain virtual printing generate picture file, comprising:
The virtual printing request that preview file is corresponding is treated described in submitting in queue;
When described virtual printing request is polled to, treat that preview file carries out virtual printing to described, described in renewal, treat the virtual printing state that preview file is corresponding;
When virtual printing state is for print successfully, storing virtual prints the picture file generated.
In one embodiment, described method also comprises:
When inquire corresponding with described file identification until preview file time, treat the notice of the format conversion state that preview file is corresponding described in sending to client.
According to a second aspect of the present invention, the invention provides a kind of previewing file method, comprising:
Send to server and treat preview file;
File after the format conversion that reception server is replied;
Present the file after described format conversion.
In one embodiment, described to server send treat preview file before, described method also comprises:
Send file identification to server, described file identification is used for mark and treats preview file;
Described transmission to server treats preview file, comprising:
When receive that server replys do not inquire the notice until preview file corresponding to described file identification time, treat preview file described in sending to server.
In one embodiment, described method also comprises:
The notice of the format conversion state that preview file is corresponding is treated described in reception server sends;
When described format conversion state be just change at pending file time, send described file identification periodically to described server, until receive described format conversion state not for just to change at pending file.
According to a third aspect of the present invention, the invention provides a kind of previewing file device, comprising:
First receiver module, for receive client send treat preview file;
Modular converter, for the form that preview file is converted to client and can presents for the treatment of that will receive, obtains the file after format conversion;
First sending module, sends to client by the file after format conversion, the file after making client present described format conversion.
In one embodiment, described modular converter comprises:
Virtual printing submodule, for treating that preview file carries out virtual printing to what receive, obtains the picture file that virtual printing generates.
In one embodiment, described device also comprises:
Second receiver module, for receiving the file identification that client sends, described file identification is used for mark and treats preview file;
Enquiry module, for treating preview file according to the file identification inquiry received is corresponding with described file identification;
Notification module, for when do not inquire corresponding with described file identification until preview file time, notify described client do not inquire described file identification corresponding treat preview file, described client is sent and treats preview file.
In one embodiment, described device also comprises:
Judge module, for when inquire corresponding with described file identification until preview file time, treat according to described the format conversion state that preview file is corresponding, described in judgement, treat preview file whether format conversion success;
Second sending module, for when described in until preview file format conversion success time, the file described in acquisition after the format conversion that preview file is corresponding, sends to client by the file after described format conversion.
In one embodiment, described virtual printing submodule comprises:
Commit unit, treats the virtual printing request that preview file is corresponding described in submitting in queue;
To described, virtual printing unit, for when described virtual printing request is polled to, treats that preview file carries out virtual printing, treats the virtual printing state that preview file is corresponding described in renewal;
Storage unit, for when virtual printing state is for print successfully, storing virtual prints the picture file generated.
In one embodiment, described device also comprises:
3rd sending module, for when inquire corresponding with described file identification until preview file time, treat the notice of the format conversion state that preview file is corresponding described in sending to client.
According to a fourth aspect of the present invention, the invention provides a kind of previewing file device, it is characterized in that, comprising:
File send module, treats preview file for sending to server;
File receive module, for the file after the format conversion that reception server is replied;
Present module, for presenting the file after described format conversion.
In one embodiment, described device also comprises:
Mark sending module, for sending file identification to server, described file identification is used for mark and treats preview file;
Described file send module, for when receive that server replys do not inquire the notice until preview file corresponding to described file identification time, treat preview file described in sending to server.
In one embodiment, described device also comprises:
Notice receiver module, treats the notice of the format conversion state that preview file is corresponding described in reception server sends;
Cycle sending module, for when described format conversion state be just change at pending file time, send described file identification periodically to described server, until receive described format conversion state not for just to change at pending file.
According to a fifth aspect of the present invention, the invention provides a kind of previewing file system, comprise: there is the server that device described in the above-mentioned any embodiment provided according to a third aspect of the present invention is corresponding, and there is client corresponding to device described in the above-mentioned any embodiment provided according to a fourth aspect of the present invention.
Beneficial effect of the present invention is: what receive client transmission treats preview file, by the form that preview file is converted to client and can presents for the treatment of received, obtain the file after format conversion, the file after format conversion is sent to client, the file after making client present format conversion.Such mode, can treat preview file and complete on-line conversion, and the file after conversion is issued client, make client need not depend on third-party application again and get final product preview file, avoid the waste of terminal storage resource, save user time, increase the convenience of previewing file.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write instructions, 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 instructions, 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 the process flow diagram of one embodiment of the invention file method for previewing.
Fig. 2 is the process flow diagram being treated the method for preview file in one embodiment of the invention by file identification inquiry.
Fig. 3 is the process flow diagram of one embodiment of the invention file method for previewing.
Fig. 4 is the process flow diagram of one embodiment of the invention file method for previewing.
Fig. 5 is the scene schematic diagram of one embodiment of the invention file method for previewing.
Fig. 6 is the process flow diagram of one embodiment of the invention file method for previewing.
Fig. 7 is the process flow diagram of one embodiment of the invention file method for previewing.
Fig. 8 is the structural drawing of one embodiment of the invention file pre-viewing device.
Fig. 9 is the structural drawing of another embodiment of the present invention file pre-viewing device.
Figure 10 is the structural drawing of another embodiment of the present invention file pre-viewing device.
Figure 11 is the structural drawing of another embodiment of the present invention file pre-viewing device.
Figure 12 is the structural drawing of another embodiment of the present invention file pre-viewing device.
Figure 13 is the structural drawing of another embodiment of the present invention file pre-viewing device.
Figure 14 is the structural drawing of one embodiment of the invention file pre-viewing device.
Figure 15 is the structural drawing of another embodiment of the present invention file pre-viewing device.
Figure 16 is the structural drawing of another embodiment of the present invention file pre-viewing device.
Figure 17 is the structural drawing of one embodiment of the invention file prebrowsing system.
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 the process flow diagram of one embodiment of the invention file method for previewing, as shown in Figure 1, file method for previewing of the present invention can be used for server, such as, to Mail Clients receive Email attachment in file provide format conversion to serve background server in or other provide in the background server of the application of file conversion service, the method comprises the steps:
In step S101, what receive client transmission treats preview file.
Wherein, treat that preview file is the file that client place terminal needs preview, such as, the attachment files in mail.
For example, take client as Mail Clients be example, when user receives by Mail Clients the mail comprising annex, can the application of this annex file of preview if client does not have in the terminal, by the background server providing the interface of file conversion service to send to Mail Clients corresponding file in client.
So, can collect client counterpart terminal cannot the file of preview.
In step s 102, by the form that preview file is converted to client and can presents for the treatment of received, the file after format conversion is obtained.
For example, when receive that user sends after preview file, can be that terminal usually can the form of preview by file transform, also can by the application on inquiry terminal, acquisition can the application message of some form of preview, and file layout being converted to above-mentioned application can the form of preview.
In one embodiment, the above-mentioned form that preview file is converted to client and can presents for the treatment of that will receive, the file obtained after format conversion can comprise: treat that preview file carries out virtual printing to what receive, obtain the picture file that virtual printing generates.
For example, receive user send after preview file, virtual printing is carried out to file, text is converted to picture file, such as, be converted to JPEG (International Standard of image compression) form.JPEG is widely used in image, field of video processing, and terminal supports the preview of the image of jpeg format usually, and be jpeg format by file transform, then client can directly preview.
In one embodiment, above-mentioned to receive treat that preview file carries out virtual printing, obtain virtual printing generate picture file can comprise the steps A1-A3:
In steps A 1, submit in queue and treat the virtual printing request that preview file is corresponding.
In steps A 2, when virtual printing request is polled to, treats preview file and carry out virtual printing, upgrade and treat the virtual printing state that preview file is corresponding;
In steps A 3, when virtual printing state is for print successfully, storing virtual prints the picture file generated.
For example, when server receives after preview file, in printing list, submit one to comprise the record treating preview file virtual printing state, and the request of a virtual printing is submitted to print queue, by the virtual printing program preset, poll print queue, when being polled to this virtual printing request, perform the virtual printing task that this treats preview file, and renewal prints in list, and this treats the virtual printing state of preview file, when receiving after preview file, when submitting a file virtual printing state in printing list, owing to treating that preview file does not also start to carry out virtual printing, therefore, virtual printing state is not for print, after virtual printing completes, upgrading according to different situations the virtual printing state printing this file in list need according to actual conditions, such as, when just performing this until the virtual printing task that preview file is corresponding, virtual printing state is in execution, after being finished, virtual printing state is divided into and prints successfully and print unsuccessfully two kinds.When virtual printing state is for printing successfully, successful picture file will be printed and store in the server.
In addition, above-mentioned steps S102 can also realize in the following way: receive client send until preview file time, the application message of client counterpart terminal can be received simultaneously, now above-mentioned conversion treats that the mode of preview file can also comprise: the application message on inquiring client terminal counterpart terminal, when having installed the application of some formatted file of preview in above-mentioned terminal, can the form of preview by treating that preview file is converted to this application.
So, be that terminal by the form of the direct preview of third-party application, can not avoid the waste of the terminal storage resource that client counterpart terminal causes because installing third-party application by file transform.
In step s 103, the file after format conversion is sent to client, the file after making client present format conversion.
For example, the file being converted to picture format is sent to client, make client realize preview object by the file after conversion.
So, client place terminal can being made without the need to downloading third-party application, just can realize online preview file, avoiding waste of time.
In one embodiment, as shown in Figure 2, said method also can comprise the steps S201-S203:
In step s 201, receive the file identification that client sends, file identification is used for mark and treats preview file.
In step S202, treat preview file according to the file identification inquiry received is corresponding with file identification.
In step S203, when do not inquire corresponding with file identification until preview file time, notice client do not inquire file identification corresponding treat preview file, client is sent and treats preview file.
For example, user end to server initiates request, submits the file identification treating preview file to, waiting for server process.This file identification can the content of a file of unique identification.Server lookup whether have with this file identification corresponding treat preview file, when do not inquire corresponding with file identification until preview file time, notice client sends corresponding with file identification treats preview file.
In one embodiment, said method also can comprise the steps B1-B2:
In step bl is determined., when inquire corresponding with file identification until preview file time, according to treating the format conversion state that preview file is corresponding, judge to treat preview file whether format conversion success;
In step B2, when until preview file format conversion success, obtain the file after the format conversion that preview file is corresponding, the file after format conversion is sent to client.
For example, when server lookup to corresponding with file identification until preview file time, the format conversion state that preview file is corresponding is treated in inquiry, and format conversion state can comprise: format conversion success, pending file conversion, format conversion failure maybe cannot obtain state.The format conversion state that preview file is corresponding is treated in server lookup, when server lookup to format conversion state be format conversion success time, represent carried out format conversion, and format conversion success.Now, obtain the file after the format conversion stored, the file after this format conversion is sent to client.
In one embodiment, said method also can comprise: when inquire corresponding with file identification until preview file time, send the notice treating the format conversion state that preview file is corresponding to client.
For example, adopt virtual printing mode to treat preview file and carry out format conversion, wherein, using virtual printing state as format conversion state.When server lookup to corresponding with file identification until preview file time, server prints the virtual printing state treating preview file in list by inquiry, determine the format conversion state treating that preview file is corresponding, when server lookup is etc. to be printed to virtual printing state, sending format conversion state to client is just changing at pending file, when inquiring virtual printing state for printing unsuccessfully, sending format conversion state to client is file transform failure, and sends error reporting.
So, by sending the notice treating the format conversion state that preview file is corresponding to client, client is made can to obtain the format conversion state of file in real time.
Beneficial effect of the present invention is: be that most of terminal can the form of direct preview by the file transform will collected from client, avoid the waste of the terminal storage resource that client counterpart terminal causes because installing third-party application, save the time that user is a large amount of simultaneously, and, by sending the notice treating the format conversion state that preview file is corresponding to client, client is made to obtain the format conversion state of file in real time.
Fig. 3 is the process flow diagram of one embodiment of the invention file method for previewing, as shown in Figure 3, file method for previewing of the present invention can be used for server, such as, to Mail Clients receive Email attachment in file provide format conversion to serve background server in or other provide in the background server of the application of file conversion service, the method provides one preferably technical scheme, comprises the steps:
In step S301, receive the file identification that client sends.
Wherein, file identification treats preview file for mark.
In step s 302, preview file is treated according to the file identification inquiry received is corresponding with file identification.
In step S303, when do not inquire corresponding with file identification until preview file time, notice client do not inquire file identification corresponding treat preview file, client is sent and treats preview file.
In step s 304, what receive client transmission treats preview file.
In step S305, by the form that preview file is converted to client and can presents for the treatment of received, obtain the file after format conversion.
In step S306, the file after format conversion is sent to client, the file after making client present format conversion.
The exemplary illustration of each step above-mentioned, see the exemplary illustration in a upper embodiment, does not repeat them here.
In one embodiment, said method also can comprise the steps C1-C2:
In step C1, when inquire corresponding with file identification until preview file time, according to treating the format conversion state that preview file is corresponding, judge to treat preview file whether format conversion success.
In step C2, when until preview file format conversion success, obtain the file after the format conversion that preview file is corresponding, the file after format conversion is sent to client.
For example, when server lookup to corresponding with file identification until preview file time, the format conversion state that preview file is corresponding is treated in inquiry, and format conversion state can comprise: format conversion success, pending file conversion, format conversion failure maybe cannot obtain state.The format conversion state that preview file is corresponding is treated in server lookup, when server lookup to format conversion state be format conversion success time, represent carried out format conversion, and format conversion success.Now, obtain the file after the format conversion stored, the file after this format conversion is sent to client.
It should be noted that, above-mentioned steps C1 and step S303 can regard two kinds of situations that in step S302, query manipulation is corresponding as.When performing the query manipulation of step S302, when inquiring the preview file corresponding with file identification, performing step C1-C2, when not inquiring the preview file corresponding with file identification, performing step S303-S306.
Beneficial effect of the present invention is: treat the result of preview file according to inquiry and treat the file transform state of preview file, corresponding Different Results and file transform state, preset different operations respectively, achieve the file layout on-line conversion function of server, avoid the repetitive operation to format conversion, provide format conversion efficiency; And be that terminal usually can the form of direct preview by the file transform will collected from client, avoiding the waste of the terminal storage resource that client counterpart terminal causes because installing third-party application, saving the plenty of time.
Fig. 4 is the process flow diagram of one embodiment of the invention file method for previewing, as shown in Figure 5, in the present embodiment, method is applied in following scene: previewing file method can be used for Mail Clients receive Email attachment in file provide format conversion to serve Cloud Server in, adopt virtual printing mode to complete format conversion, will treat that preview file is converted to picture file.Start cloud task customer in response end in Cloud Server and send information; Cloud stores in storing and prints list, print queue, binary file storage container, the picture file after format conversion; Virtual machine is utilized to complete virtual printing task.As shown in Figure 4, the method comprises the steps:
In step S401, cloud task receives the file identification that client sends.
For example, user end to server initiates request, and submit the file identification that will upload to, this file identification can identify the content of a file uniquely.This file identification can pass through SHA1 (Secure HashAlgorithm, Secure Hash Algorithm) and realize.
In step S402, cloud task treats preview file according to the file identification inquiry received is corresponding with file identification.
For example, in the server, comprise printing list, print the record of include file virtual printing state in list, can by printing list, inquiry whether have with this file identification corresponding treat preview file.
In step S403, when do not inquire corresponding with file identification until preview file time, cloud task notifications client do not inquire file identification corresponding treat preview file, client is sent and treats preview file.
In step s 404, what cloud task reception client sent treats preview file.
For example, when client receive that server sends do not inquire the notice until preview file corresponding to file identification time, send to server and treat preview file.In addition, when client place terminal receive cannot the file of preview time, also directly can be sent by client and treat preview file and by submitting virtual printing request application virtual printing to.
In step S405, cloud task submits the virtual printing request treating that preview file is corresponding in print queue.
For example, when server receives after preview file, in printing list, submit one to comprise the record treating preview file virtual printing state, and submit the request of a virtual printing to print queue.
In step S406, when virtual printing request is polled to, virtual machine is treated preview file and is carried out virtual printing, upgrades and treats the virtual printing state that preview file is corresponding.
For example, the above-mentioned print queue mentioned is a kind of linear list, and this linear list only allows to carry out deletion action in the front end of table, carries out update in the rear end of table.Treat that the virtual printing request that preview file is corresponding must be inserted in the rear end of table, so need by virtual machine, poll print queue, when being polled to this virtual printing request, perform this and treat preview file virtual printing task, and renewal prints in list, and this treats the virtual printing state of preview file.
In step S 407, when virtual printing state is for print successfully, virtual machine storing virtual prints the picture file generated.
For example, when printing successfully, the picture file that virtual printing can be generated stores in the server with binary form.
In step S408, the picture file that virtual printing generates is sent to client by cloud task, makes client present this picture file.
For example, the picture file that virtual printing generates is sent to client, such as, picture file can be jpeg format file, and jpeg format is International Standard of image compression form, at image, field of video processing is widely used, and most terminal all supports the preview of jpeg format image.
In step S409, when inquire corresponding with file identification until preview file time, cloud task sends the notice treating the virtual printing state that preview file is corresponding to client, and according to treating the virtual printing state that preview file is corresponding, judges to treat whether preview file has printed successfully.
This step is relative with above-mentioned steps S403, is the another kind of result for the treatment of preview file corresponding according to file identification inquiry.
For example, when inquire corresponding with file identification treat preview file time, inquire about the virtual printing state that this treats preview file, because server receives when the preview file, virtual printing state to be submitted to printing list, when virtual printing is complete, the change of virtual printing state to be updated to and print in list, so, list can be printed by inquiry and obtain the virtual printing state that this treats preview file, this virtual printing state is sent to client, and treats whether preview file is successfully completed virtual printing according to this virtual printing condition adjudgement.
Virtual printing state can comprise: format conversion success, pending file are changed, format conversion is failed and cannot obtain state.
In step S410, when printing successful until preview file, cloud task obtains the file after the virtual printing that preview file is corresponding, and the file after virtual printing is sent to client.
Owing to printing successfully, the virtual printing state printed in list can be updated to and print successfully, and print successful picture file and can store in the server in a binary format, when inquiry prints successful until preview file, when next client is inquired about to Cloud Server, directly the picture file stored in the server can be issued client.
In addition, when inquiring virtual printing state for printing unsuccessfully, sending form state to client is file transform failure, and sends error reporting to client.
When inquiring virtual printing state and being pending file conversion, it is pending file conversion that cloud task sends form state to client, client receives form state, determine that form state is after pending file conversion, file identification is sent periodically, until receive format conversion state not for just to change at pending file to server.When cloud task receives the file identification of client, perform above-mentioned task step S401 to step S410.Corresponding with file identification preview file is treated when inquiring, and according to treating the virtual printing state that preview file is corresponding, judge when preview file prints successful, obtain the file after the virtual printing that preview file is corresponding, the file after virtual printing is sent to client.
Beneficial effect of the present invention is: by sending file identification, and whether inquiry has corresponding with file identification is treated preview file, prevents duplicate printing, avoids the waste of server resource.And by sending the virtual printing state of file in real time to client, make user can understand the virtual printing state of file at any time, secondly, when virtual printing state is for printing unsuccessfully, sending error reporting to client, user being understood and prints failed reason.
Fig. 6 is the process flow diagram of one embodiment of the invention file method for previewing, and as shown in Figure 6, file method for previewing of the present invention can be used for client, such as Mail Clients or other relate in the client of file transform demand, the method comprises the steps:
In step s 601, preview file is treated to server transmission.
For example, when user receives by Mail Clients the mail comprising annex, if do not have in the terminal can the application of this annex file of preview for client, then file is sent to server end.
So, can by cannot the file of the direct preview background server that sends to client corresponding.
In step S602, the file after the format conversion that reception server is replied.
For example, receive until preview file when server and complete this after the format conversion of preview file, the file after format conversion is replied to client, and the file after format conversion can be jpeg format, is applicable to the terminal of installing this client.
So, be that client counterpart terminal can the form of direct preview by file transform, avoid the waste of the storage resources that terminal causes because installing third-party application, saving user time.
In step S603, present the file after format conversion.
Such as, present with graphic form, terminal can be made to obtain and hold consistent preview effect with PC (PC).
In one embodiment, said method also can comprise: send file identification to server, and file identification is used for mark and treats preview file.
Above-mentioned steps S601 can comprise: when receive that server replys do not inquire the notice until preview file corresponding to file identification time, send to server and treat preview file.
For example, user end to server initiates request, submits file identification and the user profile of oneself for the treatment of preview file to, waiting for server process.File identification mentioned here can the content of a file of unique identification, can pass through SHA1 (Secure Hash Algorithm, Secure Hash Algorithm) realization.Server lookup whether have with this file identification corresponding treat preview file, when do not inquire corresponding with file identification until preview file time, notice client sends corresponding with file identification treats preview file.
In one embodiment, said method also can comprise the steps D1-D2:
In step D1, the notice treating the format conversion state that preview file is corresponding that reception server sends.
In step d 2, when format conversion state be just change at pending file time, send file identification periodically to server, until receive format conversion state not for just to change at pending file.
For example, the file identification that server receives client transmission will treat according to printing list query the format conversion state that preview file is corresponding, and by format conversion replying state to client, when the state returned is pending file conversion, client sends file identification with a preset time period to server, knows till returning different conditions.
Beneficial effect of the present invention is: by sending file identification, and whether inquiry has corresponding with file identification is treated preview file, can prevent duplicate printing, avoid the waste of server resource, reduce the load of server.
Fig. 7 is the process flow diagram of one embodiment of the invention file method for previewing, and as shown in Figure 7, file method for previewing of the present invention can be used for client, such as Mail Clients or other relate in the client of file transform demand, the method comprises the steps:
In step s 701, file identification is sent to server.
Wherein, file identification treats preview file for mark.
In step S702, when receive that server replys do not inquire the notice until preview file corresponding to file identification time, send to server and treat preview file.
In step S703, the notice treating the format conversion state that preview file is corresponding that reception server sends.
In step S704, when format conversion state be just change at pending file time, send file identification periodically to server, until receive format conversion state not for just to change at pending file.
In step S705, the file after the format conversion that reception server is replied.
In step S706, present the file after format conversion.
Present embodiments provide one preferably step array mode.Be intended to the intention of interactive step by client angle clearer statement client and server and whole scheme, due to the embodiment of each step above-mentioned, all have a detailed description in a upper embodiment, do not repeat them here.
Beneficial effect of the present invention is: file identification is than treating little many of preview file, file identification is sent by a fixed cycle, to realize real-time reception format conversion state, be obviously better than being sent by the cycle treating that preview file realizes real-time reception format conversion state.Decrease the traffic consumes of server and client side's counterpart terminal, improve interactive speed.
Fig. 8 is the structural drawing of one embodiment of the invention file pre-viewing device, as shown in Figure 8, file pre-viewing device of the present invention can be used for server, such as, to Mail Clients receive Email attachment in file provide format conversion to serve background server in or other provide in the background server of the application of file conversion service, this device comprises:
First receiver module 81, for receive client send treat preview file;
Modular converter 82, for the form that preview file is converted to client and can presents for the treatment of that will receive, obtains the file after format conversion;
First sending module 83, sends to client by the file after format conversion, the file after making client present format conversion.
In one embodiment, as shown in Figure 9, modular converter 82 comprises:
Virtual printing submodule 91, for treating that preview file carries out virtual printing to what receive, obtains the picture file that virtual printing generates.
In one embodiment, as shown in Figure 10, device also comprises:
Second receiver module 101, for receiving the file identification that client sends, file identification is used for mark and treats preview file;
Enquiry module 102, for treating preview file according to the file identification inquiry received is corresponding with file identification;
Notification module 103, for when do not inquire corresponding with file identification until preview file time, notice client do not inquire file identification corresponding treat preview file, client is sent and treats preview file.
In one embodiment, as shown in figure 11, device also comprises:
Judge module 111, for when inquire corresponding with file identification until preview file time, according to treating the format conversion state that preview file is corresponding, judge to treat preview file whether format conversion success;
Second sending module 112, for when until preview file format conversion success, obtains the file after the format conversion that preview file is corresponding, the file after format conversion is sent to client.
In one embodiment, as shown in figure 12, virtual printing submodule 91 can comprise:
Commit unit 121, treats for submitting in queue the virtual printing request that preview file is corresponding;
Virtual printing unit 122, for when virtual printing request is polled to, treats preview file and carries out virtual printing, upgrades and treats the virtual printing state that preview file is corresponding;
Storage unit 123, for when virtual printing state is for print successfully, storing virtual prints the picture file generated.
In one embodiment, as shown in figure 13, device also comprises:
3rd sending module 131, for when inquire corresponding with file identification until preview file time, send the notice treating the format conversion state that preview file is corresponding to client.
Figure 14 is the structural drawing of one embodiment of the invention file pre-viewing device, and as shown in figure 14, file pre-viewing device of the present invention can be used for client, such as Mail Clients or other relate in the client of file transform demand, this device comprises:
File send module 141, treats preview file for sending to server;
File receive module 142, for the file after the format conversion that reception server is replied;
Present module 143, for presenting the file after format conversion.
In one embodiment, as shown in figure 15, device also comprises:
Mark sending module 151, for sending file identification to server, file identification is used for mark and treats preview file;
Above-mentioned file send module 141, for when receive that server replys do not inquire the notice until preview file corresponding to file identification time, send to server and treat preview file.
In one embodiment, as shown in figure 16, device also comprises:
Notice receiver module 161, the notice treating the format conversion state that preview file is corresponding that reception server sends;
Cycle sending module 162, for being when format conversion state just when pending file is changed, sends file identification to server, periodically until receive format conversion state not for just to change at pending file.
Figure 17 is the structural drawing of one embodiment of the invention file prebrowsing system, and as shown in figure 14, file prebrowsing system of the present invention can be used in the interactive system between Mail Clients and server, and this device comprises:
There is server 171 as corresponding in device arbitrary in Fig. 8-13, and there is client 172 as corresponding in device arbitrary in Figure 14-16.
For example, the server 171 in this system and client 172 are undertaken alternately by cable network or wireless network, and the present invention is not particularly limited this.
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 disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-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 computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme 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 process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme 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 (19)

1. a previewing file method, is characterized in that, comprising:
What receive client transmission treats preview file;
By the form that preview file is converted to client and can presents for the treatment of received, obtain the file after format conversion;
File after format conversion is sent to client, the file after making client present described format conversion.
2. the method for claim 1, is characterized in that, the described form that preview file is converted to client and can presents for the treatment of that will receive, obtains the file after format conversion, comprising:
Treat that preview file carries out virtual printing to what receive, obtain the picture file that virtual printing generates.
3. the method for claim 1, is characterized in that, described method also comprises:
Receive the file identification that client sends, described file identification is used for mark and treats preview file;
Preview file is treated according to the file identification inquiry received is corresponding with described file identification;
When do not inquire corresponding with described file identification until preview file time, notify described client do not inquire described file identification corresponding treat preview file, described client is sent and treats preview file.
4. method as claimed in claim 3, it is characterized in that, described method also comprises:
When inquire corresponding with described file identification until preview file time, treat according to described the format conversion state that preview file is corresponding, described in judgement, treat preview file whether format conversion success;
When described when format conversion is successful for preview file, the file described in acquisition after the format conversion that preview file is corresponding, sends to client by the file after described format conversion.
5. method as claimed in claim 2, is characterized in that, describedly treats that preview file carries out virtual printing to what receive, obtains the picture file that virtual printing generates, comprising:
The virtual printing request that preview file is corresponding is treated described in submitting in queue;
When described virtual printing request is polled to, treat that preview file carries out virtual printing to described, described in renewal, treat the virtual printing state that preview file is corresponding;
When virtual printing state is for print successfully, storing virtual prints the picture file generated.
6. method as claimed in claim 3, it is characterized in that, described method also comprises:
When inquire corresponding with described file identification until preview file time, treat the notice of the format conversion state that preview file is corresponding described in sending to client.
7. a previewing file method, is characterized in that, comprising:
Send to server and treat preview file;
File after the format conversion that reception server is replied;
Present the file after described format conversion.
8. method as claimed in claim 7, is characterized in that, described send treat preview file to server before, described method also comprises:
Send file identification to server, described file identification is used for mark and treats preview file;
Described transmission to server treats preview file, comprising:
When receive that server replys do not inquire the notice until preview file corresponding to described file identification time, treat preview file described in sending to server.
9. method as claimed in claim 8, it is characterized in that, described method also comprises:
The notice of the format conversion state that preview file is corresponding is treated described in reception server sends;
When described format conversion state be just change at pending file time, send described file identification periodically to described server, until receive described format conversion state not for just to change at pending file.
10. a previewing file device, is characterized in that, comprising:
First receiver module, for receive client send treat preview file;
Modular converter, for the form that preview file is converted to client and can presents for the treatment of that will receive, obtains the file after format conversion;
First sending module, sends to client by the file after format conversion, the file after making client present described format conversion.
11. devices as claimed in claim 10, it is characterized in that, described modular converter comprises:
Virtual printing submodule, for treating that preview file carries out virtual printing to what receive, obtains the picture file that virtual printing generates.
12. devices as claimed in claim 10, it is characterized in that, described device also comprises:
Second receiver module, for receiving the file identification that client sends, described file identification is used for mark and treats preview file;
Enquiry module, for treating preview file according to the file identification inquiry received is corresponding with described file identification;
Notification module, for when do not inquire corresponding with described file identification until preview file time, notify described client do not inquire described file identification corresponding treat preview file, described client is sent and treats preview file.
13. devices as claimed in claim 12, it is characterized in that, described device also comprises:
Judge module, for when inquire corresponding with described file identification until preview file time, treat according to described the format conversion state that preview file is corresponding, described in judgement, treat preview file whether format conversion success;
Second sending module, for when described in until preview file format conversion success time, the file described in acquisition after the format conversion that preview file is corresponding, sends to client by the file after described format conversion.
14. devices as claimed in claim 11, it is characterized in that, described virtual printing submodule, comprising:
Commit unit, treats the virtual printing request that preview file is corresponding described in submitting in queue;
To described, virtual printing unit, for when described virtual printing request is polled to, treats that preview file carries out virtual printing, treats the virtual printing state that preview file is corresponding described in renewal;
Storage unit, for when virtual printing state is for print successfully, storing virtual prints the picture file generated.
15. devices as claimed in claim 12, it is characterized in that, described device also comprises:
3rd sending module, for when inquire corresponding with described file identification until preview file time, treat the notice of the format conversion state that preview file is corresponding described in sending to client.
16. 1 kinds of previewing file devices, is characterized in that, comprising:
File send module, treats preview file for sending to server;
File receive module, for the file after the format conversion that reception server is replied;
Present module, for presenting the file after described format conversion.
17. devices as claimed in claim 16, it is characterized in that, described device also comprises:
Mark sending module, for sending file identification to server, described file identification is used for mark and treats preview file;
Described file send module, for when receive that server replys do not inquire the notice until preview file corresponding to described file identification time, treat preview file described in sending to server.
18. devices as claimed in claim 17, it is characterized in that, described device also comprises:
Notice receiver module, treats the notice of the format conversion state that preview file is corresponding described in reception server sends;
Cycle sending module, for when described format conversion state be just change at pending file time, send described file identification periodically to described server, until receive described format conversion state not for just to change at pending file.
19. 1 kinds of previewing file systems, is characterized in that, comprising: have as arbitrary in claim 10-15 as described in the server of device, and have as arbitrary in claim 16-18 as described in the client of device.
CN201510056308.2A 2015-02-03 2015-02-03 File previewing method, device and system Pending CN104615391A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510056308.2A CN104615391A (en) 2015-02-03 2015-02-03 File previewing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510056308.2A CN104615391A (en) 2015-02-03 2015-02-03 File previewing method, device and system

Publications (1)

Publication Number Publication Date
CN104615391A true CN104615391A (en) 2015-05-13

Family

ID=53149859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510056308.2A Pending CN104615391A (en) 2015-02-03 2015-02-03 File previewing method, device and system

Country Status (1)

Country Link
CN (1) CN104615391A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045802A (en) * 2015-05-22 2015-11-11 杭州亿方云网络科技有限公司 Message-driven multi-type file preview system
CN105068709A (en) * 2015-07-23 2015-11-18 广东欧珀移动通信有限公司 File processing method and apparatus
CN105120109A (en) * 2015-09-11 2015-12-02 广州视睿电子科技有限公司 File displaying method and system
CN106100971A (en) * 2016-06-01 2016-11-09 腾讯科技(深圳)有限公司 Information creating, method for sending information and information creating, information transmitting apparatus
CN106777179A (en) * 2016-12-22 2017-05-31 金蝶软件(中国)有限公司 A kind of online method for previewing of document and system
CN106790459A (en) * 2016-12-08 2017-05-31 北京致远互联软件股份有限公司 A kind of online method for previewing of file and system
CN107153645A (en) * 2016-03-02 2017-09-12 北大方正集团有限公司 The creation method of online document and the establishment system of online document
CN108090078A (en) * 2016-11-22 2018-05-29 北京京东尚科信息技术有限公司 The online method for previewing of document and device
CN108322526A (en) * 2018-01-23 2018-07-24 上海净阅科技有限公司 A kind of transmission method of document
CN110795540A (en) * 2018-07-17 2020-02-14 上海智臻智能网络科技股份有限公司 Attachment preview method and device of question-answering system, storage medium and terminal
CN111199141A (en) * 2018-10-31 2020-05-26 阿里巴巴集团控股有限公司 Picture processing method and device and electronic equipment
CN111694795A (en) * 2020-05-07 2020-09-22 深圳市连用科技有限公司 File online preview method, device, terminal and medium
US10846468B2 (en) 2016-06-01 2020-11-24 Tencent Technology (Shenzhen) Company Limited Apparatus and methods for creating and sending table information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753624A (en) * 2009-12-21 2010-06-23 珠海纳思达企业管理有限公司 Information download processing and information download indicating method, device and system
CN101770350A (en) * 2009-01-05 2010-07-07 鸿富锦精密工业(深圳)有限公司 Printing system and printing method
CN102662983A (en) * 2012-03-14 2012-09-12 南京新与力文化传播有限公司 A method for previewing PDF files on a remote server
CN103188128A (en) * 2011-12-29 2013-07-03 盈世信息科技(北京)有限公司 Preview method of mail attachment and mail system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770350A (en) * 2009-01-05 2010-07-07 鸿富锦精密工业(深圳)有限公司 Printing system and printing method
CN101753624A (en) * 2009-12-21 2010-06-23 珠海纳思达企业管理有限公司 Information download processing and information download indicating method, device and system
CN103188128A (en) * 2011-12-29 2013-07-03 盈世信息科技(北京)有限公司 Preview method of mail attachment and mail system
CN102662983A (en) * 2012-03-14 2012-09-12 南京新与力文化传播有限公司 A method for previewing PDF files on a remote server

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045802A (en) * 2015-05-22 2015-11-11 杭州亿方云网络科技有限公司 Message-driven multi-type file preview system
CN105068709A (en) * 2015-07-23 2015-11-18 广东欧珀移动通信有限公司 File processing method and apparatus
CN105120109A (en) * 2015-09-11 2015-12-02 广州视睿电子科技有限公司 File displaying method and system
CN107153645A (en) * 2016-03-02 2017-09-12 北大方正集团有限公司 The creation method of online document and the establishment system of online document
US10846468B2 (en) 2016-06-01 2020-11-24 Tencent Technology (Shenzhen) Company Limited Apparatus and methods for creating and sending table information
CN106100971A (en) * 2016-06-01 2016-11-09 腾讯科技(深圳)有限公司 Information creating, method for sending information and information creating, information transmitting apparatus
CN106100971B (en) * 2016-06-01 2019-05-28 腾讯科技(深圳)有限公司 Information creating, method for sending information and information creating, information transmitting apparatus
CN108090078A (en) * 2016-11-22 2018-05-29 北京京东尚科信息技术有限公司 The online method for previewing of document and device
US11256773B2 (en) 2016-11-22 2022-02-22 Beijing Jingdong Shangke Information Technology Co., Ltd. Document online preview method and device
CN108090078B (en) * 2016-11-22 2021-11-30 北京京东尚科信息技术有限公司 Document online preview method and device, storage medium and electronic equipment
CN106790459A (en) * 2016-12-08 2017-05-31 北京致远互联软件股份有限公司 A kind of online method for previewing of file and system
CN106777179A (en) * 2016-12-22 2017-05-31 金蝶软件(中国)有限公司 A kind of online method for previewing of document and system
CN108322526A (en) * 2018-01-23 2018-07-24 上海净阅科技有限公司 A kind of transmission method of document
CN110795540A (en) * 2018-07-17 2020-02-14 上海智臻智能网络科技股份有限公司 Attachment preview method and device of question-answering system, storage medium and terminal
CN111199141A (en) * 2018-10-31 2020-05-26 阿里巴巴集团控股有限公司 Picture processing method and device and electronic equipment
CN111199141B (en) * 2018-10-31 2023-05-05 阿里巴巴集团控股有限公司 Picture processing method and device and electronic equipment
CN111694795A (en) * 2020-05-07 2020-09-22 深圳市连用科技有限公司 File online preview method, device, terminal and medium

Similar Documents

Publication Publication Date Title
CN104615391A (en) File previewing method, device and system
US11762697B2 (en) Method and apparatus for scheduling resource for deep learning framework
CN106557288B (en) Method and device for acquiring printing data
CN113742031B (en) Node state information acquisition method and device, electronic equipment and readable storage medium
CN111797091A (en) Method and device for querying data in database, electronic equipment and storage medium
CN102098330A (en) Method, device and system for asynchronous transmission based on json data format
CN111038906A (en) Order sorting method and device
US20140223004A1 (en) Network system and information reporting method
CN104657841A (en) Express item delivery method, delivery processing method, express cabinet terminal and service system
CN110912814A (en) Interface data distribution method and device
CN103024049B (en) Realize the system that browser data is synchronous
CN105656643A (en) Method and equipment for performing compatible management based on network configuration protocol
CN112969198A (en) Data transmission method, terminal and storage medium
CN111343220B (en) Repeater, distributed file transmission method, distributed file transmission system, medium and electronic equipment
CN103188205A (en) Information uploading method and system based on LVS framework
CN113127231B (en) Order processing and order inquiring method, device, system and electronic equipment
CN103227772A (en) System for scalable processing of files in the cloud
CN103036989B (en) Socket server and sockets services method
CN113382050B (en) Message transmission method, system, computing device and storage medium
JP5162686B2 (en) Method for retrieving object from DM client and device management system related thereto
CN112688982B (en) User request processing method and device
CN111782157A (en) Express bill printing management method, device and system
CN113452727A (en) Equipment cloudization service processing method and device
CN111402044A (en) Data configuration system and data configuration method thereof
CN110647346A (en) Method and device for updating bill of dough

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20150513