CN103546499B - A kind of file data processing method and server - Google Patents

A kind of file data processing method and server Download PDF

Info

Publication number
CN103546499B
CN103546499B CN201210237160.9A CN201210237160A CN103546499B CN 103546499 B CN103546499 B CN 103546499B CN 201210237160 A CN201210237160 A CN 201210237160A CN 103546499 B CN103546499 B CN 103546499B
Authority
CN
China
Prior art keywords
file
service program
client
server
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210237160.9A
Other languages
Chinese (zh)
Other versions
CN103546499A (en
Inventor
庄渭峰
史子旺
冯荣峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210237160.9A priority Critical patent/CN103546499B/en
Publication of CN103546499A publication Critical patent/CN103546499A/en
Application granted granted Critical
Publication of CN103546499B publication Critical patent/CN103546499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of file data processing method and server, in one server of the method application, the server only has store function, including:The first file for uploading is received, and preserves first file;The first service program for uploading is received, and the first service program is preserved, wherein, the first service program is for by the server calls, and runs in the server;The incidence relation set up between first file and first service program;When receive client for first file access request when, the first service program is called according to the incidence relation;Based on described in the first service program, first file is carried out changing the second file;Second file is transferred to into the client.The method can improve the access rate of file data, improve Consumer's Experience.

Description

A kind of file data processing method and server
Technical field
The present invention relates to Dropbox technical field, more particularly to a kind of file data processing method and server.
Background technology
Dropbox also referred to as Network U plate, network hard disc are some network companies by the hard disk or hard disk array of its server A part of memory space is given register user and carries out file storage, access, backup or the file management such as shared.
After user can store audio-video document to Dropbox, as long as user connects the Internet using electronic equipment, just The file that can be stored in which in Dropbox carries out editorial management.But when user needs to access audio frequency and video for storing etc. in Dropbox During multimedia file, it is necessary first to by audio/video multimedia file download to user it is local after, just can realize to multimedia Play out.And for larger multimedia file, will need to expend longer by the multimedia file in Dropbox locally downloading Time, therefore user has to wait for the file download process of long period, and after file download terminates, just locally can enter Style of writing part is played, and be have impact on multimedia file playing efficiency, is reduced Consumer's Experience.
The content of the invention
In view of this, the present invention provides a kind of file data processing method and server, and the method can improve number of files According to access rate, improve Consumer's Experience.
For achieving the above object, the present invention provides following technical scheme:A kind of file data processing method, methods described should With in a server, the server only has store function, including:
The first file for uploading is received, and preserves first file;
The first service program for uploading is received, and preserves the first service program, wherein, the first service program is used In by the server calls, and run in the server;
The incidence relation set up between first file and first service program;
When receive client for first file access request when, call described the according to the incidence relation One service routine;
Based on the first service program, first file is converted to the operation of the second file for execution, and to described The data of the second file described in client transmissions.
On the other hand, present invention also offers a kind of server, the server only has store function, including:
First receiving unit, for receiving the first file for uploading, and preserves first file;
Second receiving unit, for receiving the first service program for uploading, and preserves the first service program, wherein, The first service program is for by the server calls, and runs in the server;
Incidence relation sets up unit, for setting up the incidence relation between first file and first service program;
Request reception unit, for receiving access request of the client for first file;
Requesting processing, for receiving when request reception unit during the access request for first file, root The first service program is called according to the incidence relation;
File conversion unit, for based on the first service program, performing and for first file changing the second file Operation, and to the data of the second file described in the client transmissions.
Understand via above-mentioned technical scheme, compared with prior art, the present disclosure provides at a kind of file data Reason method and server, the method are in the present embodiment after the first file and first service program is received, literary by first Part and first service program set up incidence relation, so when receive client for first file access request when, can To call the first service program, based on the first service program, the conversion of the first file is represented for ease of client or just In the second file to client transmissions, and the data of the second file are transmitted to client, client is without the need for carrying out Respective handling, and then cause user's realization rapidly and efficiently to access corresponding document, improve Consumer's Experience.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 shows a kind of schematic flow sheet of file data processing method one embodiment of the invention;
Fig. 2 shows a kind of schematic flow sheet of another embodiment of file data processing method of the invention;
Fig. 3 shows a kind of schematic flow sheet of another embodiment of file data processing method of the invention;
Fig. 4 shows a kind of schematic flow sheet of another embodiment of file data processing method of the invention;
Fig. 5 shows a kind of structural representation of one embodiment of server of the invention;
Fig. 6 shows a kind of structural representation of another embodiment of server of the invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The embodiment of the invention discloses a kind of file data processing method, this is applied to a server, and the server only has There is store function, the method can improve user and access the processing speed for being stored in file data in the server, and can be favourable In data transfer, Consumer's Experience is improved.
Referring to Fig. 1, a kind of schematic flow sheet of file data processing method one embodiment of the invention, this enforcement are shown Example is applied in a server, and the server only has store function, and the server can be understood as network hard disc server, i.e., Dropbox server is commonly called as, the method includes:
Step 101:The first file for uploading is received, and preserves first file.
Step 102:The first service program for uploading is received, and preserves the first service program, wherein, first clothes Business program is for by the server calls, and runs in the server.
Wherein, first file and first service program can be uploaded in the server by same user, it is also possible to by During different users uploads onto the server respectively.When first file and first service program is uploaded by same user, the use Family can be while uploading first file and first service program, naturally it is also possible to which it is literary to be that different time sections upload first respectively Part and first service program.
First file can be arbitrary data file, and e.g., first file can be multimedia file, document files Deng.Wherein, multimedia file can be sound, video file, and document files then can include word document, excel documents with And electronic document files etc..
Wherein, the first service program by the server calls, and can be run in the server, so that server With function corresponding with the first service program.Such as, first service program is document converse routine, then when server operation should During first service program, the server has document transformation function.
The first service program can be understood as a kind of file data converse routine, and running the first service program can be right Data in corresponding file carry out the operation such as changing.
Step 103:The incidence relation set up between first file and first service program.
In order to realize function that first service program is processed to file, by the first file for receiving and first service Program sets up incidence relation.After the first file and first service program establish incidence relation, when receiving the first file During access request, when server can identify storage first file, be also stored with the with corresponding translation function first clothes Business program.
Step 104:When receive client for first file access request when, according to the incidence relation adjust With the first service program.
In the present embodiment when receive client for first file access request when, can't directly by this One file is transferred to client, and needs the first service program for judging whether to have incidence relation with first file.
When determined according to incidence relation be stored with the first service program that there is incidence relation with the first file when, then adjust With the first service program, respective handling is carried out to first file to run first service program.
Step 105:Based on the first service program, first file is converted to the operation of the second file for execution, And to the data of the second file described in the client transmissions.
After calling the first service program, the first service program is run, it is during operation first service program, right First file is changed, to realize for the first file being converted to other kinds of second file.Wherein, second file and The information content included in one file is identical, but the form of storage information content can not in the first file and the second file Together.The second file is transferred to into client in the present embodiment.Wherein second file can support that client represents or plays lattice The data pattern of formula.
Various data files due to receiving upload in the server, accordingly, upload in the server Service routine data also have various, and run different service routines, achieved concrete function would also vary from.
In the present embodiment, the first service program is the first file can be processed and the first file is carried out turning The program changed.In actual applications, the first file can be multimedia file, and accordingly, the first service program is can be right Multimedia file is carried out decoding, is encoded, and multimedia file is converted to the service routine of files in stream media.Therefore, to clothes Business device uploads first service program, and after establishing the incidence relation of the first service program and first file, works as client End is sent when accessing the request of first file, then can call and run the first service program and be converted to first file Support the second file of transmission format, and then directly this is second literary to client transmissions in the form of media data flow Part.So, when file data amount is larger, when user accesses the multimedia file being stored in the server by client When, multimedia file can be just watched without the need for multimedia file is all downloaded, reduce the time for waiting data transfer Length, improves access speed.
In actual applications, when file of first file for multimedia data type, based on first service program, perform First file is converted to the operation of the second file, and the data to the second file of client transmissions there may be various realization sides Formula.One way in which is:Based on first service program, the data of the first file of multi-medium data are completely converted into by execution The second file of transmission format is supported, after EOC, using the second file to client transmissions media data flow, And then realize providing streaming media service to client.
And another kind of implementation is:Based on first service program, by the multimedia data file(That is the first file)Turn The packet for supporting transmission format is changed to, and in real time the packet changed out is transmitted to client, to realize Media stream data is transmitted, and provides streaming media service to client.It is understood that multimedia file is being converted to support stream During the data file of media transmission form, need source file is carried out decoding, encoded, and the data changed out are packaged into shape Into a series of continuous packets.Therefore, need not treat that the data in multimedia file are converted into completely in actual applications After the data of Streaming Media are held to obtain the second file, it is possible in real time by the packet changed out to client transmissions.
When the first file is document files, then the of incidence relation is set up in uploading onto the server and with first file One service routine should be document converse routine.I.e. the document converse routine is that first kind document files is converted to Equations of The Second Kind document The program of file.
Such as, when the first file be document files, and this article files be specially word document when, the first service program can Being word document converse routine.The word document converse routine can be that the word that word document is converted to different editions is literary Shelves, the word document of 07 edition is such as converted to the word document of 03 edition.The word document converse routine can be by word document Be converted to the program of electronic document.Word document is such as converted to the document of pdf forms.
Certainly, when first file is document files, this article files can also be other document files, such as excel Document, and document converse routine is then the program of the excel files that current excel documents are converted to another version.
In the present embodiment after the first file and first service program is received, by the first file and first service journey Sequence sets up incidence relation, so when receive client for first file access request when, first clothes can be called Business program, and then the first service program is based on, the conversion of the first file is represented for ease of client, or is easy to client Second file of transmission, client is without the need for carrying out respective handling, and then so that user's corresponding text of realization access rapidly and efficiently Part, improves Consumer's Experience.
Referring to Fig. 2, a kind of schematic flow sheet of another embodiment of file data processing method of the invention, this reality are shown A kind of specific implementation of the method for embodiment illustrated in fig. 1 of example is applied, the method for the present embodiment includes:
Step 201:Receive the first file and the first service program matched with first file for uploading.
The file for uploading for the ease of differentiation different user in actual applications and the corresponding service journey of determination this document Sequence, can be by user while the first file is uploaded, by the second file matched with the first file while upload, such as user The first file is have selected in certain terminal, is selected to accordingly carry out first file first service journey of conversion process Then first file and first service program are uploaded by sequence simultaneously.
Step 202:First file and the first service program are preserved, and sets up first file and described The incidence relation of one service routine.
When the first file and first service program are uploaded simultaneously, then show first file with the first service program phase Matching, and then server is that the first file and first service program set up incidence relation, so as to it is subsequently received for this first During the access request of file, directly invoke the first service program and first file is changed.
Step 203:When receive client for first file access request when, according to the incidence relation adjust With the first service program.
Step 204:Based on the first service program, first file is carried out changing the second file, and will be described The output of the second file is to the client transmissions.
With the corresponding steps of embodiment illustrated in fig. 1, the operating process of step 203 to step 204 realizes that process is similar, tool The description that may refer to corresponding steps in Fig. 1 embodiments of body, will not be described here.
The first service program for uploading simultaneously in the present embodiment is matched with first file, when the first file For multimedia file when, then the first service program be to carry out encoding and decoding to first file, and by first file Be converted to the program of the file for supporting transmission format.
Accordingly, when first file is multimedia file, in the present embodiment based on described in the first service Program, first file is carried out changing the second file, specially:The first service program is run in the server, will First file is converted to the second file for supporting stream medium data form.
When the first file is document files, it is simultaneously uploading with first file and match with first file the One service routine is document converse routine.Wherein, the document converse routine can be that first kind document files is converted to second Class document files.Such as, word document is changed between different editions, or the word document is converted to into electronics Document, word is such as converted to the document of PDF.Accordingly, based on first service program, the first file is converted to into second During file, then it is to run the first service program, performs and current the first file for document files is converted to into another kind of document The operation of the second file of file.
When uploading the first file every time in the present embodiment, first service program corresponding with the first file can be all uploaded, And then cause in the server when the first file is stored, the first clothes that first file and first file can be matched Business program sets up incidence relation, and is preserved.
Referring to the schematic flow sheet that Fig. 3 is a kind of another embodiment of file data processing method of the invention, the present embodiment For a kind of specific implementation of embodiment illustrated in fig. 1, the method for the present embodiment includes:
Step 301:The first file for uploading is received, the data type of first file is determined, and is preserved described first File.
Wherein, the data type can include multi-medium data, document data etc., and document data can include electronic document The types such as data, word document data, certain multimedia data type can also specifically include voice data, video data etc. Deng.
Step 302:The first service program for uploading is received, the translation function that the first service program has is determined, and Preserve the first service program.
When uploading the first file and first service program in the present embodiment, and need not be carried out by a user simultaneously Pass.But when first service program is not to upload together with alternative document, then it needs to be determined that going out the first service program institute The translation function having.
The mode for determining the translation function that the first service program has can be by entering to the first service program Row corresponding parsing, trial operation etc. operate to determine corresponding translation function.Certainly, first service program is uploaded in user When, it is also possible to corresponding identification information is uploaded, to identify the corresponding function type of first service program, and then when receiving the During one file, the first service program matched with first file is determined according to identification information.
Correspondence different types of data, the translation function that the first service program has can include:By multimedia file Be converted to the function of the file for supporting stream media format;Or, first kind document files is converted to into Equations of The Second Kind document files Word document is such as converted to pdf documents by function, so client cannot direct viewing word document when, after conversion Pdf documents are supplied to client, to represent the document of pdf forms on the client.
The tandem of the step 301 and step 302 can be exchanged in the present embodiment.
Step 303:According to the translation function that the first service program has, judge that the operation first service program is It is no first file of the data type to be changed.
In actual applications, the type of the file data in uploading onto the server is varied, therefore, close association is set up Before system, need to judge whether that the first service program can be changed first file.The step is it can be appreciated that be It is determined to the operation of first service program changed to the first file of this kind of data type.
When the translation function of first service program is determined, the file data that the first service program can be changed is run Type also determines accordingly, and then can judge that the first service program whether can be with according to the data type of first file First file is changed.
Step 304:When judging that running the first service program can change to first file, set up The incidence relation of the first service program and first file.
When determining that first service program can be changed to the first file, then the first file and first service are set up The incidence relation of program, so as to it is subsequently received access the first file request when, can find to first file carry out turn The first service program changed.
Generally, after the first service program is uploaded in server, the server just possess to this The corresponding translation function of one service routine, therefore, subsequently uploading other data class that can be changed with the first service program During the corresponding file of type, even if not uploading corresponding service routine, server system can also be judged with the presence or absence of can The service routine changed by the current file for uploading, and the association set up between this document and corresponding service routine automatically Relation, subsequently to be changed to this document based on the service routine.
Step 305:When receive client for first file access request when, according to the incidence relation adjust With the first service program.
Step 306:Based on the first service program, first file is converted to the operation of the second file for execution, Second file is transferred to into the client.
In the present embodiment, when the first file is uploaded, if having existed for change to first in the server During the first service program changed by file, then server can be set up association between first file and first service program and close System, and then conversion of the subsequent execution to the first file.For example, when user A uploads one first multimedia file, and can be by Multimedia file be converted to support transmission format file first service program when, server can set up this more than first The incidence relation of media file and the first service program, hereafter, if the user A or other users upload one the again Two multimedia files, then server will determine that whether the first service program is the journey that can change second multimedia file Sequence, as the type of second multimedia file is also multi-medium data, then the first service program can be to the matchmaker more than second Body file is changed, then the incidence relation that server can be also set up between second multimedia file and the service routine, with When continued access is received for the access request of second multimedia file after an action of the bowels, the first service program is called, performed to more than second The operation changed by media file.
Referring to Fig. 4, a kind of implementation of another embodiment of file data processing method of the invention, this enforcement are shown The method of example includes:
Step 401:The first file for uploading is received, and preserves first multimedia file.
Step 402:The first service program for uploading is received, and preserves the first service program.
Step 403:The incidence relation set up between first file and first service program.
Step 404:When receive client for first file access request when, judge the access request Whether access type is the request for downloading first file, if it is, execution step 405;If it is not, then execution step 406。
In some cases, when user accesses the first file, need not simultaneously may get in the information in the first file Hold, such as when the first file is multimedia file, it is possible to which user's current time need not be broadcast in the browser of its client Put the multimedia file.Therefore, when the access request of client is received, in addition it is also necessary to judge the access type of the access request It is whether the request for downloading first file, and then being actually needed come to the corresponding file of client transmissions according to user.
Step 405:First file is transferred to into the client.
When user needs to download first file, then the behaviour that the second file is converted to the first file need not be performed Make, therefore be also required to call first service program, and the first file can be transmitted directly to into the client directly.
Step 406 calls the first service program according to the incidence relation;
Step 407:Based on the first service program, first file is converted to into the second file, and by described The data of two files are transferred to the client.
In the case of the first file need not being downloaded in client, then first file can be converted to the second file After be transferred to client, represent corresponding file content in order to client.Such as, when the first file is multimedia file, User need not download the multimedia file completely, then when just hoping the content watched in the multimedia file, then can will be many Media file is converted to the file of stream media format, and then realizes the online viewing of user, treats that multimedia file is complete without the need for user Watched by being downloaded after finishing entirely, improve access speed.
In any of the above one embodiment, when the second file is transferred to client, in order to improve output transmission Fluency, what is occurred in reducing the second file content that client represents play asking for not smooth or content revealing effect difference Topic, before second file is transferred to the client, also includes:The status information of the client is obtained, according to The status information of the client determines message transmission rate, transmits second file with the message transmission rate determined To the client.
Wherein, the status information of client can include:The bandwidth of client, the configuration of client and/or client Network condition information.The number that state with client current time matches can determine that according to the status information of the client According to transfer rate, and then the second file is transferred to into the client according to the message transmission rate.
For example, when second file is to support the file of transmission format, can be believed according to the state of client Breath determines bit stream speed i.e. code check, and then the code check determined with this is carrying out the transmission of stream medium data.
Further, in any of the above embodiment, if first file is multimedia file, when receiving client When end is directed to the access request of first file, the streaming media playing supported by the browser of the client can also be obtained Form.And then based on first service program, when carrying out changing the second file by first file, first file is turned It is changed to the second file of the streaming media playing form supported by the browser.As the type of stream media format has various, such as AVI format, RA forms etc., it is therefore desirable to determine the concrete form of the streaming media playing supported by the browser of client, so The streaming media playing form supported according to the browser of the client afterwards is determining the concrete form of the files in stream media of conversion.
The correspondence method of the present invention, present invention also offers a kind of server, referring to Fig. 5, shows a kind of clothes of the invention The structural representation of business device one embodiment, in the present embodiment, the server includes:First receiving unit 501, second receives single Unit 502, incidence relation sets up unit 503, request reception unit 504, requesting processing 505, file conversion unit 506.
Wherein, the first receiving unit 501, for receiving the first file for uploading, and preserves first file;
Second receiving unit 502, for receiving the first service program for uploading, and preserves the first service program, its In, the first service program is for by the server calls, and runs in the server;
Incidence relation sets up unit 503, for setting up the incidence relation between first file and first service program;
Request reception unit 504, for receiving access request of the client for first file;
Requesting processing 505, for receiving when request reception unit during the access request for first file, The first service program is called according to the incidence relation;
File conversion unit 506, for based on the first service program, first file is converted to second by execution The operation of file, and to the data of the second file described in the client transmissions.
Wherein, the first file is converted to this document converting unit the operation of the second file in execution, and is passed to client The process of the data of defeated second file, can be the data of the first file are changed completely after obtain the second file, And after conversion operation terminates, the data of the second file are transmitted to client.Particularly, when the first file is multimedia During file, this document converting unit can perform multimedia file data is converted to support stream medium data during, The packet of the support stream media format changed out is transmitted to client in real time.Accordingly, this document converting unit 506 Specially:For based on the first service program, the multimedia file to be converted into the number for supporting transmission format According to bag, and by the packet of conversion to the client transmissions.
The mode for receiving the first file and first service program in actual applications has various, corresponding, and second receives single Unit 502, for, while the first receiving unit receives first file, receiving first matched with first file Service routine, and preserve the first service program.
In that case, first receiving unit and the second receiving unit may be considered same unit.
Correspondence another kind reception mode, first receiving unit 501 is specifically, be used to receive the first file, and preserve institute The first file is stated, first file is multimedia file.
Accordingly, the second file 502 be specifically, can carry out encoding and decoding for reception to first file, and by institute State the first service program that the first file is converted to the file for supporting transmission format;
Accordingly, file conversion unit 506, specially:For running the first service program, by first file Be converted to the second file for supporting stream medium data form.
Referring to Fig. 6, a kind of schematic flow sheet of another embodiment of server of the invention is shown, the present embodiment is Fig. 5 A kind of specific implementation of illustrated embodiment, the present embodiment with the difference of embodiment illustrated in fig. 5 is:
Also include in the present embodiment:Data type determination unit 508, for receiving described first when the first receiving unit During file, the data type of first file is determined.
Program function determining unit 509, for when second receiving unit receives the first service program, really The translation function that the fixed first service program has.
Accordingly, the server also includes:Judging unit 510, for the conversion being had according to the first service program Function, judges whether the operation first service program can be changed to the first file of the data type.
Correspondingly, incidence relation sets up unit 503 specifically, for when the judging unit is judged to run described the When one service routine can be changed to first file, the pass of the first service program and first file is set up Connection relation.
In any of the above one embodiment, the server of the present invention can also include:Transfer rate determining unit, is used for The status information of the client is obtained, message transmission rate is determined according to the status information of the client, wherein the shape State information includes:The network condition information of the bandwidth of client, the configuration of client and/or client;
Correspondingly, this document converting unit, also includes:File transmission unit, it is single for being determined with the transfer rate Second file is transferred to the client by the message transmission rate that unit determines.
On the other hand, present invention additionally comprises:Access type determining unit, for receiving pin when the request reception unit During to the access request of first file, judge whether the access type of the access request is to download first file Request, and when the access type of the access request is to download the request of first file, first file is transmitted To the client;Otherwise, triggering performs the operation of requesting processing.
Optionally, when the first file is multimedia file, present invention additionally comprises broadcast format acquiring unit, for working as State request reception unit and receive access request of the client for first file, and determine that first file is many matchmakers During body file, the streaming media playing form supported by the browser of the client is obtained.
Accordingly, file conversion unit, specially:For based on the first service program, first file being turned The second file of the streaming media playing form supported by the browser is changed to, and to the second file described in the client transmissions Data.
In this specification, each embodiment is described by the way of progressive, and what each embodiment was stressed is and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.For service disclosed in embodiment For device, as which corresponds to the method disclosed in Example, so description is fairly simple, related part is referring to method part Illustrate.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or using the present invention. Various modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope for causing.

Claims (15)

1. a kind of file data processing method, it is characterised in that in one server of methods described application, the server only has Store function, including:
The first file for uploading is received, and preserves first file, first file is multimedia file;
The first service program for uploading is received, and preserves the first service program, wherein, the first service program is can Multimedia file is carried out decoding, encoded, and multimedia file is converted to the service routine of files in stream media, first clothes Business program is for by the server calls, and runs in the server;
The incidence relation set up between first file and first service program;
When receive client for first file access request when, according to the incidence relation call it is described first clothes Business program;
Based on the first service program, first file is converted to the operation of the second file for execution, literary by described first Part is converted to the second file for supporting transmission format, and to the data of the second file described in the client transmissions.
2. method according to claim 1, it is characterised in that while receiving first file, receives and described the The first service program that one file matches.
3. method according to claim 1, it is characterised in that when first file is received, determine described first The data type of file;
When the first service program is received, the translation function that the first service program has is determined;
Before the incidence relation for setting up first file and the first service program, also include:
According to the translation function that the first service program has, judge whether the operation first service program can be to described First file of data type is changed;
When judging that running the first service program can change to first file, the first service is set up The incidence relation of program and first file.
4. method according to claim 3, it is characterised in that the data type of first file includes:Multimedia number According to type;
The translation function includes:Multimedia file is converted to into the function of the file for supporting stream media format.
5. the method according to any one of claims 1 to 3, it is characterised in that when first file is multimedia file When, described based on the first service program, first file is converted to the operation of the second file for execution, and to the visitor The data of second file are transmitted at family end, specially:
Based on the first service program, the multimedia file is converted into the packet for supporting transmission format, and By the packet changed out to the client transmissions.
6. method according to claim 1, it is characterised in that in the data to the second file described in the client transmissions Before, also include:
The status information of the client is obtained, message transmission rate is determined according to the status information of the client, to determine The data of second file are transferred to the client by the message transmission rate for going out, wherein, the status information includes:Visitor The network condition information of the bandwidth at family end, the configuration of client and/or client.
7. method according to claim 1, it is characterised in that when receiving access of the client for first file During request, also include:Whether the access type for judging the access request is the request for downloading first file;
When the access type of the access request is to download the request of first file, first file is transferred to into institute State client;Otherwise, execution is described is converted to the second file by the first file, and to the second file described in the client transmissions Data operation.
8. the method according to claim 1 or 3 any one, it is characterised in that when first file is multimedia file, And when receive client for first file access request when, also include:
Obtain the streaming media playing form supported by the browser of the client;
It is described to carry out changing the second file by first file in the first service program based on described, including:
Based on described in the first service program, first file be converted to into the Streaming Media supported by the browser and broadcast Put the second file of form.
9. a kind of server, it is characterised in that the server only has store function, including:
First receiving unit, for receiving the first file for uploading, and preserves first file, and first file is many matchmakers Body file;
Second receiving unit, for receiving the first service program for uploading, and preserves the first service program, wherein, it is described First service program can carry out encoding and decoding to first file, and first file is converted to support streaming media The file of form, the first service program is for by the server calls, and runs in the server;
Incidence relation sets up unit, for setting up the incidence relation between first file and first service program;
Request reception unit, for receiving access request of the client for first file;
Requesting processing, for receiving when request reception unit during the access request for first file, according to institute State incidence relation and call the first service program;
File conversion unit, for based on the first service program, first file is converted to support Streaming Media by execution The operation of the second file of data form, and to the data of the second file described in the client transmissions.
10. server according to claim 9, it is characterised in that second receiving unit, for receiving single first While unit receives first file, the first service program that matches with first file is received, and preserve described the One service routine.
11. servers according to claim 9, it is characterised in that also include:Data type determination unit, for when the When one receiving unit receives first file, the data type of first file is determined;
Program function determining unit, for when second receiving unit receives the first service program, it is determined that described The translation function that first service program has;
Accordingly, the server also includes:Judging unit, for the translation function being had according to the first service program, sentences It is disconnected to run whether the first service program is changed to the first file of the data type;
The incidence relation sets up unit specifically, being used for when the judging unit is judged to run the first service program energy When enough changing to first file, the incidence relation of the first service program and first file is set up.
12. servers according to any one of claim 9 to 10, it is characterised in that when first file reception unit When the first file for receiving is multimedia file, the file conversion unit is specially:For based on the first service journey Sequence, the multimedia file is converted into the packet for supporting transmission format, and by the packet changed out to described Client transmissions.
13. servers according to claim 9, it is characterised in that also include:
Transfer rate determining unit, it is for obtaining the status information of the client, true according to the status information of the client Determine message transmission rate, wherein the status information includes:The net of the bandwidth of client, the configuration of client and/or client Network condition information;
Accordingly, the file conversion unit includes:File transmission unit, for being determined with the transfer rate determining unit Message transmission rate the data of second file are transferred to into the client.
14. servers according to claim 9, it is characterised in that also include:
Access type determining unit, for receiving the access request for first file when the request reception unit When, judge whether the access type of the access request is the request for downloading first file, and when the access request When access type is to download the request of first file, first file is transferred to into the client;Otherwise, triggering is held The operation of row requesting processing.
15. servers according to claim 9 or 11 any one, it is characterised in that also including broadcast format acquiring unit, For access request of the client for first file being received when the request reception unit, and determine that described first is literary When part is multimedia file, the streaming media playing form supported by the browser of the client is obtained;
The file conversion unit, specially:For based on the first service program, first file being converted to described Second file of the streaming media playing form supported by browser, and to the data of the second file described in the client transmissions.
CN201210237160.9A 2012-07-09 2012-07-09 A kind of file data processing method and server Active CN103546499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210237160.9A CN103546499B (en) 2012-07-09 2012-07-09 A kind of file data processing method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210237160.9A CN103546499B (en) 2012-07-09 2012-07-09 A kind of file data processing method and server

Publications (2)

Publication Number Publication Date
CN103546499A CN103546499A (en) 2014-01-29
CN103546499B true CN103546499B (en) 2017-03-29

Family

ID=49969546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210237160.9A Active CN103546499B (en) 2012-07-09 2012-07-09 A kind of file data processing method and server

Country Status (1)

Country Link
CN (1) CN103546499B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104540014A (en) * 2015-01-28 2015-04-22 珠海迈科智能科技股份有限公司 Channel data acquiring method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100573517C (en) * 2005-02-23 2009-12-23 东芝公司 The document file management system of performed operation and method on the document in the automation data storage area
CN101600262B (en) * 2008-06-04 2013-09-25 鸿富锦精密工业(深圳)有限公司 Document processing system and method and media player thereof
CN102055731B (en) * 2009-10-27 2015-11-25 中兴通讯股份有限公司 IVVR Menu Generating System and method
CN101917606B (en) * 2009-12-08 2013-02-20 新奥特(北京)视频技术有限公司 Control method and device for transcoding system

Also Published As

Publication number Publication date
CN103546499A (en) 2014-01-29

Similar Documents

Publication Publication Date Title
US9521180B2 (en) Adaptive variable fidelity media distribution system and method
US9247276B2 (en) System and method for progressive delivery of media content
CN102055718B (en) Method, device and system for layering request content in http streaming system
CN101977218A (en) Internet playing file transcoding method and system
US20120278496A1 (en) Startup Bitrate In Adaptive Bitrate Streaming
CN104255010A (en) Support for short cryptoperiods in template mode
CN102694831B (en) Mobile terminal streaming compensation data method and system, content distributing network
TW201517572A (en) A method, device, and system thereof for data processing
CN106537924A (en) Operating method of client and server for streaming service
JP2000222278A5 (en)
CN101127623A (en) Data processing method, device and system
KR20150079557A (en) System and method for delivering an audio-visual content to a client device
EP2204965A1 (en) Device and method for receiving scalable content from multiple sources having different content quality
US20090135919A1 (en) Method and an apparatus for embedding data in a media stream
CN101997822A (en) Streaming media content delivery method, system and equipment
CN105228001A (en) The method and system that a kind of FLV format video is play online
CN103905516B (en) The method and respective server and terminal of sharing data
Kim et al. Cloud‐based gaming service platform supporting multiple devices
WO2015196590A1 (en) Method and apparatus for playing desktop cloud video
CN105191324A (en) Communication apparatus, communication data generation method, and communication data processing method
CN101282339A (en) Capability negotiation method for flow medium system, data transmission method as well as related equipment
CN106254548A (en) A kind of method and device downloading stream medium data
CN100446567C (en) Apparatus and method for realizing P2P stream broadcasting in information family appliances
CN103546499B (en) A kind of file data processing method and server
US9705836B2 (en) Method, server and SNS system for message interaction

Legal Events

Date Code Title Description
C06 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