Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Referring to FIG. 1, it illustrates the method flow diagrams of file sharing method provided by one embodiment of the present invention.This article
Part sharing method, including:
Step 101, terminal to server sends file;
The file that terminal to server is sent can be the file of terminal generation, is also possible to terminal and obtains from other equipment
The file got, the present embodiment do not limit the source of file.Specifically, terminal can pass through cable network or wireless network
This document is sent to server.
Step 102, the file that server receiving terminal is sent;
Server can receive the file that terminal is sent by cable network or wireless network.
Step 103, server generates the shared address set of file;
If the file that terminal is sent includes several pages, server can be decomposed file, to each after decomposition
Page generates a shared address, so that one page single in the available file of terminal;Alternatively, to several pages of generations after decomposition
One shared address, so that the primary several pages in available file of terminal, reduce the interaction between terminal and server, reach
The effect for improving and obtaining efficiency is arrived.
Preferably, server can transmit each by the shared address combination of generation at shared address set to save
The waste of the communication resource caused by shared address.
Step 104, server feeds back shared address set to terminal;
The shared address set of generation can be sent to terminal by server, be passed through to avoid terminal in the prior art multiple
By the page uploading after decomposition to server, and receive server feedback the page shared address caused by the communication resource
Waste has achieved the effect that save the communication resource.
Specifically, server can feed back shared address set to terminal by cable network or wireless network.
Step 105, terminal receives the shared address set of server feedback;
Specifically, terminal can receive the shared address set of server feedback by cable network or wireless network.
Step 106, terminal shares the shared address in address set to other terminals shares.
Terminal can share address to all or part in the shared address set received and share, other terminals
Address being shared by this, this document is obtained from server.
In conclusion file sharing method provided in an embodiment of the present invention, the file sent by receiving terminal;Generate institute
State the shared address set of file;The shared address set is fed back to the terminal, the terminal is to other terminals share institutes
The shared address in shared address set is stated, is solved in the prior art, when file includes multiple pages, terminal needs pass through
Repeatedly by the page uploading after decomposition to server, so that interaction times between terminal and server are more, communication overhead is big
The problem of, achieve the effect that save the communication resource.
Please refer to Fig. 2A, it illustrates another embodiment of the present invention provides file sharing method method flow diagram.This
The difference of embodiment and embodiment shown in FIG. 1 is:Server formats the file received, and shared conversion
File afterwards.This document sharing method, including:
Step 201, terminal to server sends file;
The file that terminal to server is sent can be the file of terminal generation.Alternatively, due to file file format not
It is the file format that terminal is generally supported, therefore, the predetermined application of this document format is supported to be also not commonly using journey
The installation of sequence or the predetermined application is called more troublesome.In order to avoid installing and calling the scheduled application journey in the terminal
Sequence, terminal can obtain this document from other equipment, and the present embodiment does not limit the source of file.
Wherein, the file format that terminal to server is sent can be file format when generating this document, be also possible to
File format after formatting to this document, this embodiment is not limited.For example, the file that terminal to server is sent
For PPT file, then the PPT file can be the PPT file of OFFICE generation, be also possible to OFFICE to the file of extended formatting
The PPT file obtained after formatting.
In general, a file may include several pages, in order to save the Signalling exchange between terminal and server, terminal can
Several pages in file are sent jointly to server.Further, multiple files can also be sent jointly to take by terminal
Business device.Specifically, terminal can send this document to server by cable network or wireless network.
Step 202, the file that server receiving terminal is sent;
Server can receive the file that terminal is sent by cable network or wireless network.
Step 203, server formats file;
Since the predetermined application formatted to file is equipped in server in advance, server connects
After receiving file, the predetermined application can be called, and format to this document by the predetermined application, obtained
File after to conversion.
Specifically, formatting to file can specifically include:File is resolved into several pages, every page is converted
At the file page of predetermined format.
If file includes several pages, server can be decomposed file, several pages after being decomposed, and to point
Every page after solution formats.Wherein, predetermined format can be default or specified file format, for example, picture lattice
Formula, text formatting etc..File page refers to the page after formatting to the every page after file decomposition.
In general, server enables a system model, in a system model, predetermined application is in synchronization
One file can be formatted, reduce file transfer efficiency.Wherein, system model can be user's account in system
Number.Therefore, if file at least two, formats file, may include:
It is parallel to enable at least two system models;
In each system model, pass through the predetermined application installed in server successively convert file.
For example, being mounted with WINDOWS system in server, then at least two users can be set in WINDOWS system
Account calls OFFICE to convert a PPT file since each user account can correspond to, this is enabled parallel at least
Two user accounts can concurrently convert at least two PPT files, achieve the effect that improve transfer efficiency.
Since the version for the predetermined application installed in terminal can be different, and the predetermined application pair of different editions
The conversion effect of file is different, for example, the conversion effect of the predetermined application of lowest version is poor.It therefore, can be in server
The predetermined application of middle installation latest edition, then server can be by the predetermined application of the latest edition to all ends
The All Files that end is sent are converted, and the difference of conversion effect caused by different terminals convert file and conversion are avoided
The problem of effect difference.
Further, server can also configure the conversion parameter of predetermined application, to further improve
The conversion effect of file.Specifically, before enabling at least two system models parallel, can also include:
The configuration of conversion parameter is carried out to predetermined application;
By the predetermined application installed in server successively convert file, may include:
By matching the predetermined application postponed successively convert file.
For example, the photo resolution that PPT file is converted into picture can be set in OFFICE, server can be according to conversion need
Ask the setting for carrying out photo resolution.
Step 204, server generates the shared address set of file;
If the file that terminal is sent includes several pages, server can generate a shared ground to the every page after conversion
Location, so that one page single in the available file of terminal;Alternatively, making to one shared address of several pages of generations after conversion
The primary several pages in available file of terminal, reduce the interaction between terminal and server, reached raising and obtained effect
The effect of rate.Specifically, the shared address of each of shared address set of file corresponds to one page or several pages of predetermined formats
File page.
Preferably, server can be by the shared address combination of the All Files page of generation at shared address set, with section
Save the waste of the communication resource caused by the shared address for transmitting each file page.
Step 205, server feeds back shared address set to terminal;
The shared address set received can be sent to terminal by server, be passed through to avoid terminal in the prior art more
The secondary page uploading by after decomposition to server, and receive server feedback the page shared address caused by the communication resource
Waste, achieved the effect that improve save the communication resource.
Specifically, server can feed back shared address set to terminal by cable network or wireless network.
Step 206, terminal receives the shared address set of server feedback;
Specifically, terminal can receive the shared address set of server feedback by cable network or wireless network.
Further, after the shared address set for receiving server feedback, can also include:According to shared address set
In shared address obtain corresponding with shared address file page.
It, can be shared according to this after receiving shared address set if terminal needs to obtain the file after conversion
Address set obtains the file after transit server changes.For example, server can successively according to sharing, address be obtained and this is shared
The corresponding file page in address;Or, terminal can be obtained parallel according to multiple shared addresses in shared address set it is corresponding more
A file page.
Step 207, terminal shares the shared address in address set to other terminals shares.
Terminal can share address to all or part in the shared address set received and share, other terminals
File of the address after obtaining the conversion in server can be shared by this.
Preferably, terminal can determine that the page is shared a success after getting file page corresponding with shared address, then
Shared address to other terminals shares, to improve the success rate that other terminals obtain this document page.
Specifically, the shared address in address set is shared to other terminals shares, may include:
Shared address in shared address set is sent to premise equipment, premise equipment shares with ground to other terminal broadcasts
Shared address in the set of location.
In the present embodiment, the address in shared address set directly can be sent or broadcast to other terminals by terminal;Or
Shared address in shared address set can be sent to premise equipment by person, terminal, and premise equipment is total to other terminal broadcasts
Enjoy the shared address in address set.Wherein, other terminals include at least one.Wherein, terminal or premise equipment sending or
Before broadcast address, it is thus necessary to determine that other terminals.For example, establish other terminals of connection with terminal, or, in premise equipment with
Other corresponding terminals of terminal etc..
Further, premise equipment can also cache the shared address in shared address set, to cache
Shared address set in shared address be sent to other terminals of subsequent addition.Wherein, other terminals include at least one.
Further, terminal can share address set to this and store, to share address set again according to this
File after obtaining the conversion.
It should be added that the server in the present embodiment can be decomposed into front-end server, change server
And shared server.Wherein, for interacting with terminal and shared server, change server is used to take with front end front-end server
Being engaged in, device is interactive, and shared server is used for and front-end server and terminal interaction.Alternatively, can also be by the server in the present embodiment
It is decomposed into front-end server and change server, i.e. shared server is third party device, can be interacted with server.Due to turning
Changing server can be interacted by preset account with front-end server, it may therefore be assured that the safety of the file after conversion.
Specifically, the first application schematic diagram of file sharing method shown in Fig. 2 B is please referred to, Fig. 2 B is with by server
It is decomposed into for front-end server, change server and shared server and is illustrated, front-end server can receive terminal hair
The file sent, and this document is transmitted to change server, change server formats this document, and will be after conversion
File be sent to front-end server.File after conversion is uploaded to shared server by front-end server, and receives shared clothes
Shared address set is fed back to terminal by the shared address set for device feedback of being engaged in, front-end server.
In conclusion file sharing method provided in an embodiment of the present invention, the file sent by receiving terminal;Generate institute
State the shared address set of file;The shared address set is fed back to the terminal, the terminal is to other terminals share institutes
The shared address in shared address set is stated, is solved in the prior art, when file includes multiple pages, terminal needs pass through
Repeatedly by the page uploading after decomposition to server, so that interaction times between terminal and server are more, communication overhead is big
The problem of, achieve the effect that save the communication resource.In addition, by enabling at least two system models parallel;It is at each
In system mode, the file is successively converted by the predetermined application installed in the server, it can in the server simultaneously
Row calls predetermined application to carry out file conversion, and solving predetermined application, successively transfer efficiency caused by convert file is low
Under problem, achieved the effect that improve file transfer efficiency.
File sharing method provided in this embodiment can be applied to online education field, please refer to file shown in fig. 2 C
Second of application schematic diagram of sharing method.In Fig. 2 C, lecture content is fabricated to PPT file by terminal by teacher, PPT text
Part includes at least a page.The PPT file is sent to server by terminal by teacher.Server is by each conversion of page
At picture, picture set is obtained.Server stores each picture in the picture set, and for each picture or
Several pictures distribute a URL.Server closes the URL combination of picture at set of URL, and set of URL conjunction is transmitted to terminal.
After teacher receives set of URL conjunction by terminal, set of URL conjunction can be sent or broadcast to and the terminal is established
Other terminals of connection.Or;
Set of URL conjunction is sent to premise equipment by terminal by teacher, and premise equipment is broadcasted the set of URL to other students and closed.
Further, in order to guarantee the diversity of the content of courses, premise equipment be can be set corresponding to the multiple education channels of section's purpose, often
A education channel accesses a teacher and several students.After premise equipment receives set of URL conjunction, the teacher institute can be determined
The education channel of access is broadcasted the set of URL to other students for accessing the education channel and is closed.Teacher passes through terminal, other students
The picture request for carrying URL is sent to shared server by other terminals 1, other terminals 2 to other terminal ns, and is obtained
Picture corresponding with the URL.Alternatively, in order to improve the success rate of shared picture, teacher can be after getting shared picture
Shared URL.Specifically, teacher sends the picture request for carrying URL by terminal to shared server, is getting and is being somebody's turn to do
The URL is sent to premise equipment after the corresponding picture of URL.After premise equipment receives URL, it can determine that the teacher is connect
The education channel entered broadcasts the URL to other students for accessing the education channel.Other students pass through other terminals 1, other ends
End 2 sends the picture request for carrying URL to other terminal ns to shared server, and obtains picture corresponding with the URL.?
After academics and students get all pictures, teacher can be according to image content to students give lessons.
Further, premise equipment can also close the set of URL of broadcast and store, if premise equipment detects subsequent have
Other students access the education channel, then can close the set of URL of storage and be sent to the student terminal newly accessed, the new access
Student terminal still can close the picture after obtaining conversion according to the set of URL received.
Referring to FIG. 3, it illustrates the structural framing figures of shared file system provided by one embodiment of the present invention.This article
Part shared system may include server, terminal and several other terminals.Wherein, server may include:First receives mould
Block 310, generation module 320 and feedback module 330;Terminal may include:Sending module 410, the second receiving module 420 and shared
Module 430.
Sending module 410, for sending file to server, server generates the shared address set of file;
First receiving module 310, for receiving the file of terminal transmission;
Generation module 320, for generating the shared address set for the file that the first receiving module 310 receives;
Feedback module 330, the shared address set for generating to terminal feedback generation module 320, terminal is to other ends
Share the shared address in shared address set in end;
Second receiving module 420, the shared address set of the file for receiving server generation;
Sharing module 430, in the shared address set for being received to other second receiving modules of terminals share 420
Shared address.
In conclusion shared file system provided in an embodiment of the present invention, the file sent by receiving terminal;Generate institute
State the shared address set of file;The shared address set is fed back to the terminal, the terminal is to other terminals share institutes
The shared address in shared address set is stated, is solved in the prior art, when file includes multiple pages, terminal needs pass through
Repeatedly by the page uploading after decomposition to server, so that interaction times between terminal and server are more, communication overhead is big
The problem of, achieve the effect that save the communication resource.
Referring to FIG. 4, the structural framing figure of the shared file system provided it illustrates yet another embodiment of the invention.This article
Part shared system may include server, terminal and several other terminals.Wherein, server may include:First receives mould
Block 310, generation module 320 and feedback module 330;Terminal may include:Sending module 410, the second receiving module 420 and shared
Module 430.
Sending module 410, for sending file to server, server generates the shared address set of file;
First receiving module 310, for receiving the file of terminal transmission;
Generation module 320, for generating the shared address set for the file that the first receiving module 310 receives;
Feedback module 330, the shared address set for generating to terminal feedback generation module 320, terminal is to other ends
Share the shared address in shared address set in end;
Second receiving module 420, the shared address set of the file for receiving server generation;
Sharing module 430, it is shared in the shared address set for being received to other terminals share receiving modules 420
Address.
Further, server can also include:
Conversion module 340, for translating the file into the file page of several predetermined formats, the shared address set of this document
Each of shared address correspond to the file page of one page or several pages of predetermined formats.
Specifically, if file at least two, conversion module 340, may include:
Unit 341 is enabled, for enabling at least two system models parallel;
Converting unit 342, for enable unit 341 enable each system model in, by being installed in server
Predetermined application successively convert file.
Further, conversion module 340 can also include:
Configuration unit 343, for enable unit 341 parallel enable at least two system models before, to scheduled application journey
The configuration of sequence progress conversion parameter;
Converting unit 342, for matching the predetermined application postponed successively convert file by configuration unit 343.
Further, server can also include:
Memory module 350, for storing the file page of predetermined format;
The shared address set of file specifically includes memory module 350 and stores every page or several pages of predetermined format files
The storage address of page.
Further, each of shared address set of file shares address and fixes in advance corresponding to one page or several pages
File is resolved into several pages by server by the file page of the file page of formula, predetermined format, is formatted to every page
It arrives.
Further, terminal can also include:
Module 440 is obtained, for obtaining file corresponding with shared address according to the shared address shared in address set
Page.
Specifically, sharing module 430 make a reservation for for the shared address in shared address set to be sent to premise equipment
Equipment shares the shared address in address set to other terminal broadcasts.
In conclusion shared file system provided in an embodiment of the present invention, the file sent by receiving terminal;Generate institute
State the shared address set of file;The shared address set is fed back to the terminal, the terminal is to other terminals share institutes
The shared address in shared address set is stated, is solved in the prior art, when file includes multiple pages, terminal needs pass through
Repeatedly by the page uploading after decomposition to server, so that interaction times between terminal and server are more, communication overhead is big
The problem of, achieve the effect that save the communication resource.In addition, by enabling at least two system models parallel;It is at each
In system mode, the file is successively converted by the predetermined application installed in the server, it can in the server simultaneously
Row calls predetermined application to carry out file conversion, and solving predetermined application, successively transfer efficiency caused by convert file is low
Under problem, achieved the effect that improve file transfer efficiency.
Referring to FIG. 5, the structural framing figure of the shared file system provided it illustrates further embodiment of this invention.This article
Part shared system includes terminal 510, server 520 and several other terminals 530.
Terminal 510, for sending file to server 520;
Server 520 generates the shared address set of file, to terminal 510 for receiving the file of the transmission of terminal 510
Feed back shared address set;
Terminal 510 is also used to receive the shared address set of the feedback of server 520, shares shared ground to other terminals 530
Shared address in the set of location.
Further, above-mentioned shared file system can also include premise equipment 540, for above-mentioned terminal 510 and
It states several other terminals 530 and keeps link connection, shared address set is sent to premise equipment 540 by terminal 510, predetermined to set
Standby 540 can be by sending to other terminals 530 broadcast shared address set, in this way other terminals 530 to server 520
Downloading request with shared address obtains above-mentioned need file to be sharing.
Wherein, terminal 510 can be terminal as shown in Figure 3 or Figure 4, and server 520 can be as shown in Figure 3 or Figure 4
Server.When shared file system of the invention is applied to online education field, that the terminal 510 represents is teacher
It gives lessons terminal, and what other described terminals 530 represented is student terminal.
Pass through cable network or wireless network connection between terminal 510 and server 520.
In conclusion shared file system provided in an embodiment of the present invention, the file sent by receiving terminal;Generate institute
State the shared address set of file;The shared address set is fed back to the terminal, the terminal is to other terminals share institutes
The shared address in shared address set is stated, is solved in the prior art, when file includes multiple pages, terminal needs pass through
Repeatedly by the page uploading after decomposition to server, so that interaction times between terminal and server are more, communication overhead is big
The problem of, achieve the effect that save the communication resource.In addition, by enabling at least two system models parallel;It is at each
In system mode, the file is successively converted by the predetermined application installed in the server, it can in the server simultaneously
Row calls predetermined application to carry out file conversion, and solving predetermined application, successively transfer efficiency caused by convert file is low
Under problem, achieved the effect that improve file transfer efficiency.
It should be noted that:Terminal, server and shared file system provided by the above embodiment are carrying out file-sharing
When, only the example of the division of the above functional modules, in practical application, it can according to need and divide above-mentioned function
With being completed by different functional modules, i.e., the internal structure of terminal, server and shared file system is divided into different function
Energy module, to complete all or part of the functions described above.In addition, terminal provided by the above embodiment, server and text
Part shared system and file sharing method embodiment belong to same design, and specific implementation process is detailed in embodiment of the method, here
It repeats no more.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.