CN110413576A - Method, system, file management facilities and the storage medium that file is shown - Google Patents
Method, system, file management facilities and the storage medium that file is shown Download PDFInfo
- Publication number
- CN110413576A CN110413576A CN201810402796.1A CN201810402796A CN110413576A CN 110413576 A CN110413576 A CN 110413576A CN 201810402796 A CN201810402796 A CN 201810402796A CN 110413576 A CN110413576 A CN 110413576A
- Authority
- CN
- China
- Prior art keywords
- file
- shelves
- original document
- storage address
- turns
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of method that file is shown, this method comprises: file management facilities receive the previewing file request that the first user equipment is sent, wherein previewing file request includes the identification information of original document, the target display location in original document;Resolution file preview request, obtains identification information and target display location;According to identification information and target display location, determine that target turns the first storage address of files;Wherein, the target display location that target turns that files are original document is turned that shelves obtain and is setting format;The first storage address is fed back to the first user equipment, so that the first user equipment is obtained according to the first storage address and show corresponding target display location turns files.Guarantee that the file of compatible different-format carries out display and the quickly target position of display file by the above method.The application also provides system, file management facilities and the storage medium that file is shown.
Description
Technical field
This application involves the communications field, the method shown more particularly to file, system, file management facilities and storage are situated between
Matter.
Background technique
With universal, the various files tool indispensable as routine office work of electronic office, but with computer, hand
It is mechanical, electrical depending on etc. terminals continue to bring out, various display platforms can be provided for file.But if the terminal needs to show text
Part must then be equipped with the special-purpose software for showing file, for example, then needing terminal to be equipped with corresponding word document
Microsoft office software, otherwise can not show.Moreover, being all direct when terminal installation special-purpose software shows this document
It is shown since homepage, user can not select the page number shown when its opening, greatly be not easy to checking for user.
Summary of the invention
The application mainly solving the technical problems that provide a kind of method that file is shown, system, file management facilities and
Storage medium can guarantee that the file of compatible different-format carries out display and the quickly target position of display file.
In order to solve the above technical problems, the technical solution that the application uses is: a kind of method that file is shown is provided,
The described method includes:
File management facilities receive the previewing file request that the first user equipment is sent, wherein the previewing file request
Target display location in identification information, the original document including original document;
The previewing file request is parsed, the identification information and target display location are obtained;
According to the identification information and the target display location, determine that the target turns the first storage ground of files
Location;Wherein, the target display location that the target turns that files are the original document is turned that shelves obtain and is setting
Format;The file format for setting format and supporting display as first user equipment;
First storage address is fed back to first user equipment, so that first user equipment is according to described the
One storage address obtains and shows that the described of the corresponding target display location turns files.
In order to solve the above technical problems, another technical solution that the application uses is: a kind of file management facilities are provided,
The equipment includes processor, memory and telecommunication circuit;Wherein,
The telecommunication circuit with other equipment for communicating;
The processor is used to run the program data of the memory storage, shows for executing file as described above
Method.
To solve a kind of above-mentioned technical problem, another technical solution that the application uses is: providing a kind of file and shows
System, the system comprises:
File management facilities, file-storage device and the first user equipment, wherein the file-storage device and first is used
Family equipment is connect with the file management facilities respectively;
The file-storage device is used to store original document and/or turns to turn files after shelves to the original document;
The file management facilities are file management facilities as described above.
In order to solve the above technical problems, another technical solution that the application uses is: providing a kind of with store function
Storage medium, the storage medium is stored with program data, and described program data realize file as described above when being run
The method of display.
Above scheme is requested by parsing received previewing file, to obtain the identification information, original of original document
Target display location in file determines that target turns the first storage ground of files according to identification information and target display location
First storage address is finally fed back to the first user equipment by location, so that the first user equipment is obtained according to the first storage address
It takes and show corresponding target display location turns files, providing user equipment from there through the file for different-format can show
Format turn files so that user equipment can show this document content, thus ensure that the file of compatible different-format into
Row display, meanwhile, corresponding with the target display location turn of shelves text can be directly provided according to the target display location in request
Part so that user equipment can quickly show the target position of file, therefore realizes user to the flexible choice of display position, increases
The intelligence of display and convenience.
Detailed description of the invention
Fig. 1 is a kind of method that file is shown of the application flow diagram in one embodiment;
Fig. 2 is the method that shows of present specification flow diagram in another embodiment;
Fig. 3 is the method that shows of present specification flow diagram in another embodiment;
Fig. 4 is the method that shows of present specification flow diagram in another embodiment;
Fig. 5 is the method that shows of present specification flow diagram in another embodiment;
Fig. 6 is the method that shows of present specification flow diagram in another embodiment;
Fig. 7 is the method that shows of present specification flow diagram in another embodiment;
Fig. 8 is the method that shows of present specification flow diagram in another embodiment;
Fig. 9 is structural schematic diagram in a kind of one embodiment of file management facilities of the application;
Figure 10 is a kind of structural schematic diagram of system that file is shown of the application in one embodiment;
Figure 11 is a kind of structural schematic diagram of storage medium with store function of the application in one embodiment.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description.It is understood that specific embodiment described herein is only used for explaining the application, rather than to the limit of the application
It is fixed.Based on the embodiment in the application, obtained by those of ordinary skill in the art without making creative efforts
Every other embodiment, shall fall in the protection scope of this application.
Term " first ", " second ", " third " in the application are used for description purposes only, and should not be understood as instruction or dark
Show relative importance or implicitly indicates the quantity of indicated technical characteristic.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Referring to Figure 1, the flow diagram of the method shown for present specification in one embodiment.As shown in Figure 1, In
In present example, the application includes step S110 to step S140.
S110: file management facilities receive the previewing file request that the first user equipment is sent.
Previewing file request is that user by the first user equipment is sent to file management facilities, and wherein previewing file request can
Be due to user by the first user equipment can not preview a certain file when, file is sent to file management facilities by network
Preview request.
In one embodiment, previewing file request includes that the identification information of original document, the target in original document are shown
Position, it is possible to understand that, it can also include other information in previewing file request.In this application, user is needed into preview
The file of unprocessed form is known as original document, which can be the texts such as conventional office file, such as word, PPT
Part.The identification information of original document refers to the information with uniqueness for being used to identify original document.Specifically, in different realities
Applying an identification information can be the identification code of original document or the second storage address of original document.Wherein, original document
Second storage address is the storage address (content relevant to the second storage address that original document is stored in file management facilities
Can hereafter be described in further detail), it should be noted that identification code and the storage address all have uniqueness.It should be understood that at it
In his embodiment, identification information can also include other information with uniqueness, specifically it is not limited here.
In another embodiment, previewing file request further includes destination file format.I.e. previewing file request includes original
The identification information of file, target display location and destination file format in original document.Wherein, destination file format is user
The file format for wishing preview, specifically can be and is set by the user, and can also be the value according to default.Such as, in one embodiment,
User can set destination file format as PDF format or picture format.Default can be directly selected in another embodiment
Value, if default setting destination file format is picture format, it should be noted that the setting of default value is set according to most users
The standby format setting supported.It should be understood that in other embodiments, destination file format can also be set as other lattice
Formula is not described in detail specifically one by one herein.
The target display location of original document is the part that user wishes preferential preview.Wherein, the target of original document is aobvious
Show the multipage that position can be one page in original document, be also possible in original document, depending on the demand of concrete foundation user,
It selects to set by user.
S120: resolution file preview request obtains the identification information and target display location.
File management facilities can further be connect in parsing in the previewing file request for receiving the transmission of the first user equipment
The previewing file request received.By resolution file preview request, obtain included in previewing file solicited message for marking
Know the identification information and target display location of original document.
S130: according to identification information and target display location, determine that target turns the first storage address of files.
As described above, the identification information of original document be it is with uniqueness, i.e., the identification information of different files is not
It is identical, and due to the original of the identification information of original document and target display location and target display location in this application
The first storage address that target corresponding to beginning file turns files is associated with preservation in advance.So can be solved according in step S120
It analyses previewing file and requests resulting identification information and target position, and according to identification information and target display location and target position
Target corresponding to original document turns the incidence relation between files, determines that target turns the first storage address of files.
Wherein, the target display location that target turns that files are original document is turned that shelves obtain and is the text for setting format
Part, this sets the file format that format supports display as the first user equipment.In one embodiment, target, which turns files, can be
Original document part corresponding to target display location turns shelves content.In another embodiment, target, which turns files, can wrap
Turn shelves content containing original document part corresponding to target display location.Such as, in the request of the previewing file as obtained by parsing
Target display location is page 10~15, and it then may be precisely page 10~15 that target corresponding with target display location, which turns files,
It is also possible to page 10~20, can also be page 8~17, shelves plan specifically is turned to the original document according to file management facilities
Slightly, such as the original document turns shelves dividing elements situation.
In one embodiment, which can be defaulted by file management facilities.Certainly, which can also be with
Determining by the request of the first user equipment transmission, for example, above-mentioned target display format.Specifically, which can
To be to select to set by user, can also be by the first user equipment default setting, i.e., when user does not know the first user
When the format that equipment is supported, the file format that terminal is supported can voluntarily be obtained by the first user terminal, be selected by user
Equipment or default setting.In one embodiment, setting format includes: PDF format and picture format.
In a concrete scene, format is set as destination file format, is set by the user and is selected and set by the first user
It is standby to be sent to file management facilities, it is included in previewing file request.
S140: the first storage address is fed back to the first user equipment, so that the first user equipment is according to the first storage address
It obtains and show corresponding target display location turns files.
Identified first storage address is fed back into the first user equipment, so that user can set by the first user
It is standby, it is obtained according to the first storage address and show corresponding target display location turns files.
Step S110 to step S140, according to the identification information of original document obtained by resolution file preview request, original
Target display location in file determines that target turns the first storage address of files, and the first storage address is fed back to
One user equipment, so that the first user equipment is obtained according to the first storage address and show corresponding target display location turns shelves
File turns files from there through what the file for different-format provided the displayable format of user equipment, so that user equipment
It can show this document content, therefore ensure that the file of compatible different-format is shown namely the cross-platform display of file, together
When, it can be according to the target display location in request, directly offer is corresponding with the target display location turns files, so that user
Equipment can quickly show the target position of file, therefore realize user to the flexible choice of display position, increase the intelligence of display
Energyization and convenience.
In one embodiment, in technical solution provided herein, the first user equipment is received in file management facilities
It further include flow diagram as shown in Figure 2 before the previewing file request of transmission.
It as shown in Figure 2, further include step S201 to step S202 before receiving previewing file request.Wherein,
S201: the original document that second user equipment uploads is received.
Before receiving the previewing file request that the first user equipment is sent, it can further receive second user equipment and upload
Original document.Wherein, in the present embodiment, second user equipment and the first user equipment are identical or different equipment, i.e.,
The user equipment for sending original document and the user equipment for sending preview request can be same equipment, be also possible to different set
It is standby.
In one embodiment, the first user equipment is a mobile phone, and second user equipment can also be the mobile phone.I.e. user passes through
Same portion's mobile phone sends original document and previewing file request.
In another embodiment, the first user equipment is a mobile phone, and second user equipment is a TV, and user passes through TV
Original document is sent, but previewing file request is sent by mobile phone, preview this document can also be through TV preview on mobile phone
This document.
S202: storage original document is stored in database in the second storage address, and by the second storage address.
File management facilities store received original document to position shown in the second storage address, and by second
In storage address preservation and database.Wherein, the second storage address is original document save location institute in file management facilities
Corresponding address, database are in file management facilities for storing identification information, the first storage address, second of original document
Storage address and other information storage areas.
Further, in one embodiment, flow diagram shown in Figure 3, i.e., file provided herein
Step S201 further includes later process as shown in Figure 3 in the method for display.As seen from the figure, Fig. 3 includes step S301 to step
S303.Wherein,
Before above-mentioned S202, the method also includes:
S301: calculating the identification code of original document, inquires in database whether have identification code.If there being identification code,
Execute S302;If there not being identification code, above-mentioned S202 and S303 is successively executed.
File management facilities can further calculate the mark of received original document after receiving original document
Code, identification code as described above is the identification information for identifying file, has uniqueness, i.e., non-equal file (same file
Refer to the i.e. identical file of file content) identification code be different.So in the mark that original document is calculated
Code after, can according to identification code inquire database in whether have the identification code, judge be in current file management facilities
It is no to have had original document.
Wherein, identification code can be MD5 code.
S302: determine that original document has stored.
If obtaining there has been the identification code in database by inquiry, since the identification code of file has uniqueness, then
It can further judge there has been the original document in file management facilities.
S202: storage original document is stored in database in the second storage address, and by the second storage address.
S303: the identification code of original document and the second storage address are associated and are stored in database.
If obtaining not having the identification code in database by inquiry, then can be judged by the uniqueness of identification code ought be above
There is no the original document in part management equipment.It then can further execute storage original document, and by the storage address of original document
Second storage address i.e. as described above is stored in database.It should be noted that file management facilities are by original document
The second storage address be associated with and be stored in database with the identification code of original document, the need to can be only inquired by identification code
Two storage address, and then get original document;It can either be got by the second storage address of original document original
The identification code of file.
Embodiment shown in Fig. 3 verifies in file management facilities whether had by file identification code with uniqueness
The original document then can avoid repeatedly being saved with a original document, or also avoid with a original document before
It has completed division or file as parsed, turning shelves unit and has turned shelves, can again or above steps may be repeated multiple times, preferably
The efficiency that file is shown is improved, the calculation amount of file management facilities is decreased, avoids the related money in file management facilities
The waste in source.
In one embodiment, Fig. 4 is referred to, does not have identification code in the database, after executing S202 shown in Fig. 3,
The method that file provided herein is shown further includes S401 to S402.
S401: parsing original document, obtains the file data distribution situation of original document.
Wherein, the process parsed to original document is to obtain the file data distribution situation of original document.It is original
The distribution situation of the file data of file includes: the total page number and original document of the total amount of data of original document, original document
At least one of every page data volume.
Further, after completing to the parsing of original document, the file data situation of original document obtained can be protected
It deposits into database, is associated with guarantor with the identification information of original document and the second storage address of original document saved before
It deposits, is called in case taking progress according to incidence relation.
Further, in one embodiment, after completing to original document parsing, the file data point of original document is obtained
After cloth situation, further store the total page number of the original document in file data distribution situation, original document second is understood
Second user equipment is fed back in the identification code of storage address and/or original document.Wherein, second in present example is used
Family equipment is equipment identical with the first user equipment.In other embodiments, when the first user equipment and second user equipment
When being different equipment, then the total page number of the original document in file data distribution situation, original document will can be stored the
The identification code of two storage address and/or original document feeds back to the equipment for preview file, that is, feeds back to transmission previewing file
At the user equipment of request.In the present example, the total page number of original document is fed back to second user equipment is to supply
The target display location of preview needed for user selects, by the second storage address of the identification code of original document and/or original document
It feeds back at second user equipment when being in order to which preview request to file management facilities will be sent, the tool of original document can be provided
There is the attribute information of uniqueness, then can get other any information being associated according to the attribute information.
S402: according to the file data distribution situation of original document, the different location of original document is divided into different
Turn shelves unit, and the shelves dividing elements information that turns of original document is stored in database.
It further, can be according to the file data of parsing gained original document after completing to the parsing of original document
Distribution situation, by the different location of original document be divided into it is different turn shelves unit, can be into after completing to turn the division of shelves unit
The division information for turning shelves unit of original document is stored in database by one step.Wherein, the partitioning standards for turning shelves unit are data
Amount or file number of pages.
In one embodiment, original document is divided into according to data volume and turns shelves unit, i.e., it is corresponding each to turn shelves unit
The file data of position turn the shelves time it is identical or setting difference within.By file turn the shelves time and file is included
Data volume is proportional, thus such as to guarantee each file data for turning the corresponding position of shelves unit turn the shelves time it is identical or
Person then needs the quantity turned in shelves unit divided by control identical or a certain preset within the difference of setting
In difference.Wherein, dividing original document is that data volume referenced when turning shelves unit can originally be set, can also be according to original document
Total amount of data and data volume empirical value setting.Wherein, data volume empirical value, which refers to, divides multiple turns of shelves units of original document
Referenced data volume is obtained after test of many times verifying gained either divides heap file.
In another embodiment, each shelves unit that turns can also be set as a fixed number of pages, such as no matter original document number of pages has
How much, it includes page 10 that setting, which divides each shelves unit that turns,.
It should be noted that passing through the total amount of data of original document transmitted by second user equipment relatively as worked as user
It is small, i.e., when turning data volume empirical value referenced by shelves unit less than division, then do not need file to be carried out turning shelves unit again
Words, or also be understood as entire file and be one turning shelves unit.
Wherein, it should be noted that in technical solution provided herein, it is continuous for turning the corresponding position of shelves unit
's.It is successively to be divided according to the sequence of original document i.e. when being divided to original document.Such as include with original document
Page 30, the number of files after the file data distribution situation of the original document, in the corresponding position for guaranteeing each to turn shelves unit
According to turn the shelves time it is identical or in the case that set difference within, calculate data volume obtain that file need to be divided into page 1~6,7
Page~9, page 10~16, page 17~24 and page 25~30.And 1~3 and 5~7 cannot be divided in the case where skipping page 4
One turns shelves unit.Original document when dividing, can be numbered to resulting turn of shelves unit is divided, will such as divided
Gained turns shelves unit and is numbered according to letter A, B, C ... X, Y, Z, a, b, c ... x, y, z, Aa, Ba, Ca ... .Ab, Bb, Cb ...,
It is adjusted it should be understood that can according to need for turning shelves element number principle, does not do any restriction herein.
Embodiment shown in Fig. 4 is by parsing original document, and the file data point according to parsing gained original document
Cloth situation by the different location of original document be divided into it is different turn shelves unit, be user's selected section file according to needed for oneself
Preview is carried out to provide the foundation.
After at least one of the embodiment shown in as shown in Figure 1, Figure 2, Fig. 3 and Fig. 4 situation, please with further reference to figure
5, it is the flow diagram of step S130 in one embodiment in the application embodiment illustrated in fig. 1.As shown in Figure 5, step S130
Further comprise: step S531 to step S533.Wherein,
S531: whether have in inquiry database and identification information, target display location and setting format associated first
Storage address.
After resolution file preview request obtains identification information, target display location and setting format, number is further inquired
According to whether have in library with gained identification information, target display location and setting associated first storage address of format, in short
Be exactly to inquire in database according to resulting file identification information with uniqueness is parsed and whether had its and correspond to target
Display position and be to have turned shelves into the address that is saved of file after setting format: the first storage address.
Further, incorporated by reference to Fig. 7, in one embodiment, above-mentioned steps S531 includes step S701 to step S702.Its
In,
S701: obtain database in associated turn of shelves dividing elements information of identification information, and using division information determine
Turn shelves unit belonging to target display location.
In the present example, original document has saved to file management facilities and complete according to file data amount distribution situation
The division of pairs of original document.It should be noted that optimal page combinational algorithm can be used in the division of original document.Due to original
The division information that original document turns shelves unit can be associated with preservation with the identification information of original document after dividing by beginning file, so according to
Can be got according to the identification information of original document be associated turn shelves dividing elements information, recycle division information that can look into
It askes and turns shelves unit belonging to target display location.
Wherein, division information includes to turn shelves unit information belonging to the different location of original document.
S702: whether have in inquiry database and turn shelves unit and setting format associated first storage ground with what is determined
Location.
It obtains after turning shelves unit belonging to target display location, according further to the first storage address and the pass for turning shelves unit
Connection relationship, inquire database in whether have with identified turn of shelves unit and and do not set formatted file first storage ground
Location.
Such as, it requests the target display location data of preview to turn shelves unit M in previewing file request, requests the setting lattice of preview
Formula is PDF, only inquires and has with identified turn of shelves unit M and format is the first of the file of PDF to deposit in the database
Address is stored up, can judge to have in database and what is determined turns shelves unit and setting associated first storage address of format.Assuming that
The first storage address for having plenty of the picture format file for turning shelves unit M is deposited in database, then determine not having in data with
It determines and turns shelves unit and setting associated first storage address of format.
S532: if there being the first storage address, the first storage address is obtained.
It obtains having in database by inquiry and be deposited with identification information, target display location and setting format associated first
Address is stored up, then can obtain the first storage address, then will be anti-by the first acquired storage address through step S140 as described above
It is fed to the first user equipment.
S533: if there not being the first storage address, according to identification information to the mesh of the target display location of original document
Mark file data carries out turning shelves and will turn the target that shelves obtain turning files storage, and by the first storage address and identification information,
Target display location and setting format are associated and are stored in database.
In one embodiment, if obtaining there is not the first storage address in database through inquiry, can believe according to mark
Breath and target display location get the file destination number in the original document of corresponding identification information including target display location
According to, and acquired file destination data are turned into shelves into the file of setting format, it finally obtains target and turns files and save extremely
Database.Then the first storage address and identification information and setting format are associated and are stored in database.Wherein, target
Turn that files are to set format and are the files for turning shelves unit where target display location, the first storage address is to turn target
The position that files are saved in the database.It in the present example, is that shelves task is turned by file management facilities itself completion,
When in other embodiments, it can also indicate that third party turn shelves equipment and carry out turning shelves by file management facilities.
Further, it refers to Fig. 8, in one embodiment, turns shelves step in S533, i.e., it is described according to identification information
Carrying out the step of turning shelves to the file destination data of the target display location of original document includes step S801 to S802:
S801: original document is read using identification information.
Do not have after turning shelves unit and setting associated first storage address of format with what is determined in determining database, meeting
Further original document is read using identification information.Wherein, identification information as described above can be the second storage address or mark
Know code.If identification information is the second storage address, can directly be read to obtain original document according to the second storage address, such as
Fruit identification information, which is that identification code then obtains and identification code is associated, deposits the second storage address, and according to the second acquired storage ground
Read original document in location.
S802: it extracts the file data for turning position corresponding to shelves unit determined in original document and carries out turning shelves obtaining mesh
Mark turns files.
Turn shelves unit based on belonging to identified target display location, what is determined in extraction original document turns shelves unit institute
The file data of corresponding position, and the file data extracted is carried out turning shelves obtaining target to turn files.
Further, in one embodiment, by the first storage address and identification information, target display location and setting format
It is associated and is stored in the step in database and further comprise: the first storage address and identification information, determination are turned into shelves
Unit information and setting format are associated and are stored in database.Complete to target display location institute in original document
The shelves that turn of corresponding turn of shelves unit obtain target further being turned files and being saved to database after target turns files
In.Again by the thin information of mark of the first storage address (target turns the address that files are saved) and original document, identified
Turn shelves unit information and setting format association saves, when to need to call, after only need to providing wherein information with uniqueness,
Other information can be got according to incidence relation.
After at least one of the embodiment shown in as shown in Figure 1, Figure 2, Fig. 3 and Fig. 4 situation, please with further reference to figure
6, it is the flow diagram of step S130 in another embodiment in the application embodiment illustrated in fig. 1.In the present embodiment, file pipe
Reason equipment, which does not execute, turns shelves, and indicates file and turn shelves equipment and carry out turning shelves.Specifically, it will be appreciated from fig. 6 that step S130 is further wrapped
It includes: step S531, S532 and S534.Wherein, step S531 and S532 is referred to the related description of above-mentioned Fig. 5, does not make herein
It repeats.
S534: if there not being the first storage address, instruction file turns mesh of the shelves equipment according to identification information to original document
The file destination data of mark display position carry out turning shelves and will turn the target that shelves obtain turning files storage, receive file and turn shelves and set
The target of standby feedback turns the first storage address of files, and by the first storage address and identification information, target display location and
Setting format is associated and is stored in database.
In another embodiment, when file management facilities are not through having the first storage address in inquiry database, file pipe
Reason equipment further indicates the equipment except itself, as file turns the completion of shelves equipment to the mesh of the target display location of original document
Mark file data carries out turning shelves, turns files to obtain target.File turns shelves equipment after completing to turn shelves task, will further turn
Shelves gained target turns files storage, and target turned files stores the first storage address to be sent to file management facilities.
In turn, file management facilities, which can receive file and turn the target of shelves equipment feedback, turns the first storage address of files, and by the
One storage address and identification information, target display location and setting format are associated and are stored in database.
In the present embodiment, when file, which turns shelves equipment, at least two, turn shelves step in step S534, i.e. instruction file
Turn shelves equipment to carry out turning shelves step according to file destination data of the identification information to the target display location of original document can wrap
It includes: selecting at least one file to turn shelves according to the quantity of documents for turning shelves ability and/or its shelves to be turned that each file turns shelves equipment
Equipment, and indicate that the file of selection turns file destination number of the shelves equipment according to identification information to the target display location of original document
According to carrying out turning shelves.
When at least there is two and more than two files and turn shelves equipment, since what file turned shelves equipment turns shelves ability not
Together, and or in different time period the quantity of documents of shelves to be turned number, file management facilities select at least one file turn
Shelves equipment completes to turn shelves task.Wherein, the selection principle of file management facilities be so that file turn shelves equipment turn shelves ability
It is directly proportional to the data volume of files to be turned.
In addition, file provided herein is shown if obtaining there is not the first storage address in database through inquiry
Method can also after above-mentioned S534 or it is synchronous with S534 execute: instruction turn shelves at least to file destination data
Partial document turns that shelves equipment will be located at before target display location and/or subsequent at least partly file data turn shelves and will
Turn the files that accordingly turn that shelves obtain to store.For example, the position that target is shown in previewing file request is page 15~20, it can be complete
Pairs of page 15~20 also where while turn shelves unit, at least partly file that instruction turn shelves to file destination data turns
Shelves equipment, at least partly file data (can be and turn shelves unit where page 15~20 by the fronts of page 15~20 and/or below
Front and back turns shelves unit) it carries out turning shelves, to be turned files accordingly and stored, needing preview target to show position with standby user
When the front and rear part set, quick response.
It should be noted that in technical solution provided herein, same a part in same file it is corresponding
Different set format turns files, and the first corresponding storage address is also different in this application.When file management is set
When turning files of the corresponding a certain format of a certain original document, but the target for including in file request instruction have been preserved in standby
When file format turns files different from this, it can be requried the users by user equipment and whether need to change destination file format,
More rapidly to obtain required file.It should be understood that in the present embodiment, if having been preserved in file management facilities a certain
Format turns files, but when the destination file format and the format difference of the hope preview of previewing file request, if but two
Conversion speed is faster than original document and when destination file format between format, then can call directly it is existing turn files, will
Turn files and turns shelves into destination file format.
Further, in one embodiment, the function of the storage file in file management facilities is separated, is stored with file
Equipment replaces, then in the present example, original document and target turn files and be stored in file-storage device.It can manage
Solution, when file management facilities integrate file memory function, file-storage device and file management facilities are identical equipment, this
When, above-mentioned first storage address and the second storage address are to be stored in the storage address of this document management equipment.Conversely, when text
When part storage equipment separates file memory function, then file-storage device and file management facilities are different equipment, at this point,
Above-mentioned first storage address and the second storage address are to be stored in the storage address of this document storage equipment.
In an embodiment, in addition to above-mentioned user equipment does not support the format situation of original document, the application is applied also for
When the file amount of a certain original document is excessive, and the corresponding load capability of current user equipment is poor, that is, needs the more time
It can load out, the method that file described herein is shown can also be used at this time.File is sent to file management facilities, text
Part management equipment passes through the part in above steps such as and realizes the biggish original document of volume, turns shelves into occupancy small volume
File, facilitate checking for user.In the present example, the above-mentioned mode for converting original file format, file pipe are removed
File data distribution situation can also be based on for the biggish file of volume by managing equipment, be divided into multiple turns of shelves units, then by volume
Smaller turn of shelves unit is back to user equipment, to be suitable for the load capability of user equipment.
The application also provides a kind of file management facilities 100, is illustrated in figure 9 file management facilities provided herein
100 structural schematic diagram in one embodiment.This document management equipment 100 includes processor 101, memory 102 and communication electricity
Road 103.Wherein, 101 coupled memory 102 of processor and telecommunication circuit 103.Telecommunication circuit 103 with other equipment for communicating.
Processor 101 is used for the program data that run memory 102 is stored, for executing such as any one in above-mentioned each embodiment
The method that the file is shown.
The application also provides a kind of system that file is shown 200, is as shown in Figure 10 that file provided herein is aobvious
The structural schematic diagram of the system 200 shown in one embodiment.The system 200 that this document is shown include: file management facilities 201,
File-storage device 202 and the first user equipment 203, wherein file-storage device 202 and the first user equipment 203 respectively with
File management facilities 201 connect.
File-storage device 202 is used to store original document and/or turns to turn files after shelves to original document.
File management facilities 201 are the equipment of embodiment corresponding to Fig. 9.
Further, in one embodiment, the system 200 that file provided herein is shown further includes and file management
The file that equipment 201 connects turns shelves equipment 205.Wherein, file turns finger of the shelves equipment 205 for response file management equipment 201
Order carries out turning shelves to turn shelves unit at least one of original document or original document.Wherein, this document turn shelves equipment 205 can
Think more than one or two.
Further, in another embodiment, the system 200 that file provided herein is shown further includes and file pipe
The load-balancing device 204 that equipment 201 connects is managed, and it is at least two that this document, which turns shelves equipment 205,.Load-balancing device 204
Turn shelves task for turning the distribution of shelves equipment 205 at least two files, rationally to utilize file to turn the resource of shelves equipment 205,
Improve the speed that file turns shelves.Specifically, the distribution of load-balancing device 204 turns shelves task can retouch such as the correlation of above-mentioned steps S534
State, response file management equipment 201 turn shelves request, come according to each file turn shelves equipment turn shelves ability and/or its wait turn
The quantity of documents of shelves selects at least one file to turn shelves equipment, is carried out with indicating that the file turns shelves equipment to file destination data
Turn shelves, and/or at least partly file that selection turn shelves to file destination data turns shelves equipment, and indicates this at least partly
File turn shelves equipment will be located at target display location before and/or subsequent at least partly file data carry out turning shelves.In other words,
Distribution is turned shelves task and gives load-balancing device 204 by file management facilities 201 at this time, will turn shelves task and give file and turn shelves to set
Standby 205, file store tasks are given into file-storage device 202.
Further, in another embodiment, the system 200 that file provided herein is shown further includes second user
Equipment (not shown).By the elaboration in the method that is shown above to file it is found that in the present example, sending original document
Equipment and the equipment for sending preview request are different equipment, so in the present embodiment, the first user equipment 203 and second is used
One, which executes, in the equipment of family sends original document to file management facilities 201, another is then for sending previewing file request
To file management facilities 201, the cross-platform display of file can be preferably realized.
It should be noted that file management facilities 201 described herein, file turn 205 load-balancing device of shelves equipment
204 can be server.Above-mentioned first user equipment and second user equipment can be that mobile phone, computer, TV etc. arbitrarily can be real
The terminal device that now shows and can network.Further, in one embodiment, what file provided herein was shown is
System 200 further includes being exclusively used in storing data equipment (not shown), for storing described in the method that the upper file is shown
Database, i.e., for saving identification code, the second storage address, the file data distribution situation of the original document letter of original document
It ceases, the second storage address for turning files etc..
The application also provides a kind of storage medium 300 with store function, as shown in figure 11 for provided in the application
The structural schematic diagram in one embodiment of storage medium 300.The storage medium 300 is stored with program data, storage medium 300
The program data stored is performed the method for realizing that file as described above is shown.Specifically, above-mentioned have store function
Storage medium 300 can be memory, personal computer, server, the network equipment or USB flash disk of terminal device etc. wherein
One kind, it is not limited here.
The foregoing is merely presently filed embodiments, are not intended to limit the scope of the patents of the application, all to utilize this
Equivalent structure or equivalent flow shift made by application specification and accompanying drawing content, it is relevant to be applied directly or indirectly in other
Technical field similarly includes in the scope of patent protection of the application.
Claims (15)
1. a kind of method that file is shown, which is characterized in that the described method includes:
File management facilities receive the previewing file request that the first user equipment is sent, wherein previewing file request includes
Target display location in the identification information of original document, the original document;
The previewing file request is parsed, the identification information and target display location are obtained;
According to the identification information and the target display location, determine that the target turns the first storage address of files;Its
In, the target turns the target display location that files are the original document and is turned that shelves obtain and be setting format
File;The file format for setting format and supporting display as first user equipment;
First storage address is fed back to first user equipment, so that first user equipment is deposited according to described first
Storage address obtains and shows that the described of the corresponding target display location turns files.
2. the method that file according to claim 1 is shown, which is characterized in that the previewing file request further includes target
File format;The format that sets is the destination file format.
3. the method that file according to claim 1 is shown, which is characterized in that described according to the identification information and described
Target display location determines that the target turns the first storage address of files, comprising:
Whether have in inquiry database and the identification information, target display location and setting format associated first storage ground
Location;
If there being first storage address, first storage address is obtained;
If there not being first storage address, according to the identification information to the target display location of the original document
File destination data carry out turning shelves and will turn the target that shelves obtain turning files storage, and by first storage address with it is described
Identification information, target display location and setting format are associated and are stored in the database;
Or
If there not being first storage address, instruction file turns shelves equipment according to the identification information to the original document
The file destination data of target display location carry out turning shelves and will turn the target that shelves obtain turning files storage, receive the file
The target for turning shelves equipment feedback turns the first storage address of files, and first storage address and the mark are believed
Breath, target display location and setting format are associated and are stored in the database.
4. the method that file according to claim 3 is shown, which is characterized in that the file, which turns shelves equipment, at least two
It is a;
The instruction file turns target text of the shelves equipment according to the identification information to the target display location of the original document
Number of packages is according to carrying out turning shelves, comprising:
At least one file is selected according to the quantity of documents for turning shelves ability and/or its shelves to be turned that each file turns shelves equipment
Turn shelves equipment, and indicates that the selected file turns shelves equipment and shows according to target of the identification information to the original document
The file destination data of position carry out turning shelves;
And/or if there not being first storage address, the method also includes:
Indicate that at least partly file for turn shelves to the file destination data turns shelves equipment and will be located at the target show
Before position and/or subsequent at least partly file data is carried out turning shelves and be stored the files that accordingly turn that shelves obtain are turned.
5. the method that file according to claim 3 or 4 is shown, which is characterized in that whether deposited in the inquiry database
Have and includes: with the identification information, target display location and setting associated first storage address of format
Obtain in database with the identification information it is associated it is described turn shelves dividing elements information, and it is true using the division information
Turn shelves unit belonging to the fixed target display location, wherein the division information includes the different location of the original document
Affiliated turns shelves unit information;
Inquiry database in whether have with the determination turn shelves unit and setting associated first storage address of format;
It is described to carry out turning shelves according to file destination data of the identification information to the target display location of the original document, packet
It includes:
The original document is read using the identification information;
The file data for turning position corresponding to shelves unit determined described in the original document is extracted to carry out turning shelves obtaining mesh
Mark turns files;
It is described that first storage address is associated and is saved with the identification information, target display location and setting format
In the database, comprising:
By first storage address and the identification information, the determination turn shelves unit information and setting format is associated
And it is stored in the database.
6. the method that file according to claim 3 is shown, which is characterized in that
Before the previewing file request that the first user equipment of the reception is sent, the method also includes:
Receive the original document that second user equipment uploads;
The original document is stored in the second storage address, and second storage address is stored in database.
7. the method that file according to claim 6 is shown, which is characterized in that
It in database is stored in the second storage address, and by second storage address in the storage original document
Before, the method also includes:
The identification code for calculating the original document is inquired and whether has the identification code in the database;
If there being the identification code, it is determined that the original document has stored;
If there not being the identification code, the storage original document is executed in the second storage address, and by described second
Storage address is stored in the step in database, and the identification code of the original document and second storage address are carried out
It is associated with and is stored in the database.
8. the method that file according to claim 7 is shown, which is characterized in that described if there not being the identification code
Method further include:
The original document is parsed, the file data distribution situation of the original document is obtained;
According to the file data distribution situation of the original document, the different location of the original document is divided into different turn
Shelves unit, and the shelves dividing elements information that turns of the original document is stored in the database.
9. the method that file according to claim 8 is shown, which is characterized in that
It is described each turn the corresponding position of shelves unit file data turn the shelves time it is identical or setting difference within;
The corresponding position of described turn of shelves unit is continuous;
The file data distribution situation includes the total amount of data of the original document, the total page number of the original document and institute
State at least one of the data volume of every page of original document.
10. the method that file according to claim 8 is shown, which is characterized in that described if there not being the identification code
Method further include:
The total page number of second storage address and/or the identification code, the original document is fed back into the second user
Equipment;
The second user equipment and first user equipment are identical or different equipment;
The identification code is MD5 code.
11. the method that file according to claim 1 is shown, which is characterized in that the original document and target turn shelves text
Part is stored in file-storage device, and the file-storage device and the file management facilities are identical or different equipment;
The setting format includes: PDF format and picture format;
The identification information is the second storage address of the original document or the identification code of the original document.
12. a kind of file management facilities, which is characterized in that the equipment includes processor, memory and telecommunication circuit;Wherein,
The telecommunication circuit with other equipment for communicating;
The processor is used to run the program data of the memory storage, for executing such as any one of claim 1 to 11
The method.
13. a kind of system that file is shown, which is characterized in that the system comprises: file management facilities, file-storage device and
First user equipment, wherein the file-storage device and the first user equipment are connect with the file management facilities respectively;
The file-storage device is used to store original document and/or turns to turn files after shelves to the original document;
The file management facilities are equipment as claimed in claim 12.
14. the system that file according to claim 13 is shown, which is characterized in that the system also includes with the file
The load-balancing device and at least two files of management equipment connection turn shelves equipment;
The file turns shelves equipment for responding the instruction of the file management facilities to carry out turning shelves to the original document;
The load-balancing device is used to turn for described two files the distribution of shelves equipment and turns shelves task.
15. a kind of storage medium with store function, which is characterized in that be stored with program data, described program data are transported
Method as claimed in any one of claims 1 to 11 is realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810402796.1A CN110413576B (en) | 2018-04-28 | 2018-04-28 | File display method, system, file management device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810402796.1A CN110413576B (en) | 2018-04-28 | 2018-04-28 | File display method, system, file management device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110413576A true CN110413576A (en) | 2019-11-05 |
CN110413576B CN110413576B (en) | 2023-07-04 |
Family
ID=68357124
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810402796.1A Active CN110413576B (en) | 2018-04-28 | 2018-04-28 | File display method, system, file management device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110413576B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110795753A (en) * | 2019-11-08 | 2020-02-14 | 深圳市理约云信息管理有限公司 | File security protection system, file security sharing method and security reading method |
CN111782604A (en) * | 2020-06-30 | 2020-10-16 | 联想(北京)有限公司 | File management method and electronic equipment |
CN112933607A (en) * | 2021-04-21 | 2021-06-11 | 苏州仙峰网络科技股份有限公司 | Data configuration exporting method and device and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130262386A1 (en) * | 2012-03-30 | 2013-10-03 | Commvault Systems, Inc. | Smart archiving and data previewing for mobile devices |
CN106777179A (en) * | 2016-12-22 | 2017-05-31 | 金蝶软件(中国)有限公司 | A kind of online method for previewing of document and system |
-
2018
- 2018-04-28 CN CN201810402796.1A patent/CN110413576B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130262386A1 (en) * | 2012-03-30 | 2013-10-03 | Commvault Systems, Inc. | Smart archiving and data previewing for mobile devices |
CN106777179A (en) * | 2016-12-22 | 2017-05-31 | 金蝶软件(中国)有限公司 | A kind of online method for previewing of document and system |
Non-Patent Citations (1)
Title |
---|
赵桐: "面向印刷方向的PDF文件格式分析", 《广东印刷》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110795753A (en) * | 2019-11-08 | 2020-02-14 | 深圳市理约云信息管理有限公司 | File security protection system, file security sharing method and security reading method |
CN110795753B (en) * | 2019-11-08 | 2023-06-30 | 深圳市理约云信息管理有限公司 | File security protection system, file security sharing method and security reading method |
CN111782604A (en) * | 2020-06-30 | 2020-10-16 | 联想(北京)有限公司 | File management method and electronic equipment |
CN112933607A (en) * | 2021-04-21 | 2021-06-11 | 苏州仙峰网络科技股份有限公司 | Data configuration exporting method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110413576B (en) | 2023-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5489807B2 (en) | Information processing apparatus, form data creation method, and computer program | |
CN106453572B (en) | Method and system based on Cloud Server synchronous images | |
CN102314486A (en) | Method and equipment for browsing page | |
CN110413576A (en) | Method, system, file management facilities and the storage medium that file is shown | |
CN104899325A (en) | APP (application) acquired data collection method, terminal, server and system | |
CN110096660A (en) | Method, apparatus and electronic equipment for loading page picture | |
CN102682093A (en) | Web page sectionally-loading method and web page sectionally-loading system for mobile browser | |
US9167026B2 (en) | Communication system, communication apparatus, and control method of relay apparatus | |
US8930848B2 (en) | Method for selecting area of content for enlargement, and apparatus and system for providing content | |
CN102801788A (en) | Method, device and system for realizing augmented reality information sharing | |
CN106161523A (en) | A kind of data processing method and equipment | |
CN101102311B (en) | A method, client and system for negotiating data synchronization mechanism | |
CN107329976B (en) | Webpage paging method and device, computer equipment and computer readable storage medium | |
CN102790727A (en) | Method and system for dynamically pushing personal labels of users | |
CN102541452A (en) | Multimedia input method, device and system based on mobile terminal | |
CN103368951B (en) | File downloading method and system | |
CN106375454A (en) | Method and system for uploading file by scanning graphic identifier | |
CN105554290A (en) | Wallpaper sharing method and device | |
CN103179153A (en) | Mobile terminal and mobile terminal data backup method based on cloud server | |
CN104216982A (en) | Information processing method and electronic equipment | |
CN106155842A (en) | A kind of data migration method and device | |
CN112016280B (en) | File editing method and device and computer readable medium | |
CN106302670B (en) | A kind of picture update method, communication terminal and server | |
CN102354274A (en) | Method for filling in registration information and system thereof | |
CN115827571A (en) | File management method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |