CN102195936B - The storage method and system of multimedia file, read method and system - Google Patents

The storage method and system of multimedia file, read method and system Download PDF

Info

Publication number
CN102195936B
CN102195936B CN201010121306.4A CN201010121306A CN102195936B CN 102195936 B CN102195936 B CN 102195936B CN 201010121306 A CN201010121306 A CN 201010121306A CN 102195936 B CN102195936 B CN 102195936B
Authority
CN
China
Prior art keywords
multimedia file
type
client
file
server
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.)
Expired - Fee Related
Application number
CN201010121306.4A
Other languages
Chinese (zh)
Other versions
CN102195936A (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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN201010121306.4A priority Critical patent/CN102195936B/en
Publication of CN102195936A publication Critical patent/CN102195936A/en
Application granted granted Critical
Publication of CN102195936B publication Critical patent/CN102195936B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of storage method of multimedia file, including: submitted to the request uploaded onto the server by multimedia file by client; Corresponding multimedia file, according to described request, is converted to flow object, and stores to data base by server; The invention also discloses the read method of a kind of multimedia file, including: submitted to the inquiry request of multimedia file by client; Server, according to described inquiry request, retrieves the multimedia file record of correspondence in data base, and described multimedia file record is issued in the way of HTTP; Client is according to the described corresponding multimedia file of HTTP information retrieval. The present invention can not affect on the basis of multimedia file accessing operation, it is ensured that the safety that file is deposited, and reduces taking of disk space.

Description

The storage method and system of multimedia file, read method and system
Technical field
The present invention relates to the technical field of data access, particularly relate to the reading system of a kind of storage method of multimedia file, the read method of a kind of multimedia file, the storage system of a kind of multimedia file and a kind of multimedia file.
Background technology
Along with computer and network technologies ground development, enterprise and user is Network Based has set up the computer cluster meeting miscellaneous service demand more and more. The computer of cluster internal functions independently, and externally makees as a whole offer and services. Such as the weather forecast of television station, program record and broadcast, it is generally all that a computer cluster completes. In order to manage the soft and hardware resource in cluster better, monitoring technology is arisen at the historic moment. Briefly, monitoring technology is exactly that computer software and the ruuning situation of hardware, tasks carrying situation etc. are recorded or are remotely watched, and whether the indices to understand computer is normal.
For making the monitoring system can be mutual with user better, configuration multimedia data resources is typically required on backstage, such as audio frequency, image etc., generally speaking, in the server of monitoring system, it will usually open up a disk space (data base) specially and deposit these multimedia files, each file separate storage, as, under the audio file folder of D dish in A server, deposited warning information 1.wav, warning information 2.wav, tri-audio files of warning information 3.wav; In B server under the image folder of E dish, deposit adapter .jpg, two image files of switch .jpg.
But, the mode of this unique file storage is very easily artificially unintentionally or intentionally revised in practice, and such as deletion, replacement etc., safety is difficult to ensure that, and compares and take disk space.
Therefore, it is presently required a technical problem that those skilled in the art urgently solve exactly: how can innovatively propose the access mechanism of a kind of multimedia file, in order to not affect on the basis of multimedia file accessing operation, ensure the safety that file is deposited, and reduce taking of disk space.
Summary of the invention
The technical problem to be solved is to provide access method and the system of a kind of multimedia file, in order to not affect on the basis of multimedia file accessing operation, it is ensured that the safety that file is deposited, and reduces taking of disk space.
In order to solve above-mentioned technical problem, the embodiment of the invention discloses a kind of storage method of multimedia file, including:
Submitted to the request uploaded onto the server by multimedia file by client;
Corresponding multimedia file, according to described request, is converted to flow object, and stores to data base by server.
Preferably, the step of described server storing multimedia farther includes:
For described multimedia file allocation field name, field type and file type information, being stored as corresponding data-base recording, described field type is stream file type.
Preferably, the data base in described server is SQLServer data base, and described field type is Image type; Or, the data base in described server is oracle database, and described field type is Blob type.
The embodiment of the invention also discloses the read method of a kind of multimedia file, including:
Submitted to the inquiry request of multimedia file by client;
Server, according to described inquiry request, retrieves the multimedia file record of correspondence in data base, and described multimedia file record is issued in the way of HTTP;
Client is according to the described corresponding multimedia file of HTTP information retrieval.
Preferably, described multimedia file record includes field name, field type and file type information, and described inquiry request includes field name information.
Preferably, described method, also include:
Described multimedia file is shown in client.
The embodiment of the invention also discloses the storage system of a kind of multimedia file, including:
Client upload request module, for submitting the request uploaded onto the server by multimedia file in client;
Server memory module, for according to described request, being converted to flow object by corresponding multimedia file, and store to data base.
Preferably, described server memory module farther includes:
Information distribution sub module, for for described multimedia file allocation field name, field type and file type information, described field type is stream file type;
Preserve submodule, for being stored as corresponding data-base recording according to described field name, field type and file type information.
Preferably, the data base in described server is SQLServer data base, and described field type is Image type; Or, the data base in described server is oracle database, and described field type is Blob type.
The embodiment of the invention also discloses the reading system of a kind of multimedia file, including:
Module is submitted in client query request to, for being submitted to the inquiry request of multimedia file by client;
Server retrieval release module, for according to described inquiry request, retrieving the multimedia file record of correspondence, and described multimedia file record issued in the way of HTTP in data base;
Client resource extraction module, for according to the described corresponding multimedia file of HTTP information retrieval.
Preferably, described multimedia file record includes field name, field type and file type information, and described inquiry request includes field name information.
Preferably, described system, also include:
Client display module, for showing described multimedia file in client.
Compared with prior art, the invention have the advantages that
Multimedia file is stored in database table with binary stream form by the present invention, owing to database table itself is as a file, adopt this storage mode can comprise multiple file, and, owing to data base controls typically via authority unified management, thus effectively prevent the risk that file is revised by user, can not affect on the basis of multimedia file accessing operation, ensure the safety that file is deposited, and the storage mode of this database table is also beneficial to reduce taking of disk space.
Accompanying drawing explanation
Fig. 1 is the flow chart of the storage embodiment of the method for a kind of multimedia file of the present invention;
Fig. 2 is the flow chart of the read method embodiment of a kind of multimedia file of the present invention;
Fig. 3 is the structured flowchart of the storage system embodiment of a kind of multimedia file of the present invention;
Fig. 4 is the structured flowchart of the reading system embodiment of a kind of multimedia file of the present invention.
Detailed description of the invention
Understandable for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
In practice, the multimedia data resources of backstage configuration would generally swap between a client and a server, generally speaking, described client and server carry out the mode of multimedia data resources exchange two kinds: a kind of is that client is local image and sound files passe, to store under certain field in database table in the way of data base, in data base, namely insert image and sound; Another kind is these images in client-access data base and sound, namely takes out these images and sound from data base.
Respectively above-mentioned exchanged form will be described in detail by different embodiments below.
With reference to Fig. 1, it is shown that the flow chart of the storage embodiment of the method for a kind of multimedia file of the present invention, specifically may comprise steps of:
Step 101, request multimedia file uploaded onto the server by client submission;
Corresponding multimedia file, according to described request, is converted to flow object, and stores to data base by step 102, server.
In implementing, the multimedia file upload request that described server can be submitted to according to client, extract corresponding multimedia file, and for described multimedia file allocation field name, field type and file type information, be then store as corresponding data-base recording.
It should be noted that in embodiments of the present invention, described flow object refers to binary stream, such as binary system array (byte []); Described field type is stream file type.
In practice, arranging data base in the server can be SQLServer data base, then the field type of described multimedia file can represent by Image type; As another embodiment, if data base in the server can be oracle database, then the field type of described multimedia file can represent by Blob type.
Below for oracle database, illustrate the storage organization of multimedia file of the present invention. Assume to set present image file, audio files storage under Value field, as shown in table 1:
Table 1:
Field name Field type Whether it is empty Explanation
Resid Varchar(50) Not Null The name of image or sound
Value Blob Null Storage image or sound
Type Int(4) Not null Type judges that 0 as picture, 1 sound
After the upload request submitting a switch picture file to, the respective record that server preserves in data base is as shown in table 2:
Resid Value Type
Switch <BLOB> 0
For making those skilled in the art be more fully understood that the present invention, describe the multimedia file storing process of the present invention in detail below by way of an object lesson:
The first step, pass on the interface of multimedia file on the client, picture that selected client to be uploaded is local or audio file;
Second step, server perform upload operation, selected picture or audio file are converted to binary stream file, and are deposited in table 2 and form corresponding data-base recording.
With reference to Fig. 2, it is shown that the flow chart of the read method embodiment of a kind of multimedia file of the present invention, specifically may comprise steps of:
Step 201, by client submit to multimedia file inquiry request;
Step 202, server, according to described inquiry request, retrieve the multimedia file record of correspondence in data base, and described multimedia file record are issued in the way of HTTP;
Step 203, client are according to the described corresponding multimedia file of HTTP information retrieval.
In implementing, described multimedia file record can include the information such as field name, field type and file type, then can include field name information in described inquiry request.
In one preferred embodiment of the present invention, it is also possible to comprise the following steps:
Step 204, client show described multimedia file.
For making those skilled in the art be more fully understood that the present invention, the multimedia file describing the present invention below by way of an object lesson in detail reads process:
The first step, client submit the inquiry request of multimedia file to;
Second step, service end-apparatus, according to querying condition, are retrieved corresponding record in data base, and these are existed the multimedia file in data base, issued to client by the mode of Http.
Be specifically as follows, dispose a Servlet (GetImageServlet) at server end, then the http address issued is:
Http: // 192.168.1.205:8080/nvmserver/GetImageServlet? resid=switch;
Wherein, 192.168.1.205 is the IP address of server end, and 8080 is port numbers, and resid is the Resid accessing picture or audio file, is specifically referred to the related content in table 1.
The above-mentioned http address of 3rd step, client-access, it is thus achieved that corresponding multimedia file, namely has access to the image of switch.
It should be noted that, for aforesaid each embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously. Secondly, those skilled in the art also should know, embodiment described in this description belongs to preferred embodiment, necessary to involved action and the module not necessarily present invention.
With reference to Fig. 3, it is shown that the structured flowchart of the storage system embodiment of a kind of multimedia file of the present invention, specifically may include that
Client upload request module 301, for submitting the request uploaded onto the server by multimedia file in client;
Server memory module 302, for according to described request, being converted to flow object by corresponding multimedia file, and store to data base.
In one preferred embodiment of the invention, described server memory module may further include following submodule:
Information distribution sub module, for for described multimedia file allocation field name, field type and file type information, described field type is stream file type;
Preserve submodule, for being stored as corresponding data-base recording according to described field name, field type and file type information.
In implementing, the data base in described server can be SQLServer data base, and described field type is Image type; Or, the data base in described server is oracle database, and described field type is Blob type.
Owing to the system embodiment shown in Fig. 3 essentially corresponds to the embodiment of the method shown in earlier figures 1, therefore not detailed part in the description of the present embodiment, it is possible to referring to the related description in previous embodiment, just do not repeat at this.
With reference to Fig. 4, it is shown that the structured flowchart of the reading system embodiment of a kind of multimedia file of the present invention, specifically may include that
Module 401 is submitted in client query request to, for being submitted to the inquiry request of multimedia file by client;
Server retrieval release module 402, for according to described inquiry request, retrieving the multimedia file record of correspondence, and described multimedia file record issued in the way of HTTP in data base;
Client resource extraction module 403, for according to the described corresponding multimedia file of HTTP information retrieval.
In implementing, described multimedia file record can include the information such as field name, field type and file type, correspondingly, can include field name information in described inquiry request.
In one preferred embodiment of the invention, described system can also include such as lower module:
Client display module 404, for showing described multimedia file in client.
Owing to the system embodiment shown in Fig. 4 essentially corresponds to the embodiment of the method shown in earlier figures 2, therefore not detailed part in the description of the present embodiment, it is possible to referring to the related description in previous embodiment, just do not repeat at this.
The present invention can be used in numerous general or special purpose computing system environment or configuration. Such as: multicomputer system, server, network PC, minicomputer, mainframe computer, the distributed computing environment including any of the above system or equipment etc.
The present invention can described in the general context of computer executable instructions, for instance program module. Usually, program module includes performing particular task or realizing the routine of particular abstract data type, program, object, assembly, data structure etc. The present invention can also be put into practice in a distributed computing environment, in these distributed computing environment, the remote processing devices connected by communication network perform task. In a distributed computing environment, program module may be located in the local and remote computer-readable storage medium including storage device.
Above the storage method of a kind of multimedia file provided by the present invention, the read method of a kind of multimedia file, the storage system of a kind of multimedia file and the reading system of a kind of multimedia file are described in detail, principles of the invention and embodiment are set forth by specific case used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention; Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, all will change in specific embodiments and applications, in sum, this specification content should not be construed as limitation of the present invention.

Claims (4)

1. the storage method of a multimedia file, it is characterised in that including:
Submitted to the request uploaded onto the server by multimedia file by client;
Corresponding multimedia file, according to described request, is converted to flow object, and stores to data base by server;
For described multimedia file allocation field name, field type and file type information, being stored as corresponding data-base recording, described field type is stream file type;
Data base in described server is SQLServer data base, and described field type is Image type; Or, the data base in described server is oracle database, and described field type is Blob type.
2. the read method of a multimedia file, it is characterised in that including:
Submitted to the inquiry request of multimedia file by client;
Server, according to described inquiry request, retrieves the multimedia file record of correspondence in data base, and described multimedia file record is issued in the way of HTTP;
Client extracts corresponding multimedia file according to described HTTP information from described data base;
Wherein, described multimedia file record includes field name, field type and file type information, and described inquiry request includes field name information; Storage multimedia file in the database is flow object; Described field type is stream file type;
Also include:
Described multimedia file is shown in client.
3. the storage system of a multimedia file, it is characterised in that including:
Client upload request module, for submitting the request uploaded onto the server by multimedia file in client;
Server memory module, for according to described request, being converted to flow object, and store to data base by corresponding multimedia file;
Wherein, described server memory module farther includes:
Information distribution sub module, for for described multimedia file allocation field name, field type and file type information, described field type is stream file type;
Preserve submodule, for being stored as corresponding data-base recording according to described field name, field type and file type information;
Data base in described server is SQLServer data base, and described field type is Image type; Or, the data base in described server is oracle database, and described field type is Blob type.
4. the reading system of a multimedia file, it is characterised in that including:
Module is submitted in client query request to, for being submitted to the inquiry request of multimedia file by client;
Server retrieval release module, for according to described inquiry request, retrieving the multimedia file record of correspondence, and described multimedia file record issued in the way of HTTP in data base;
Client resource extraction module, for extracting corresponding multimedia file according to described HTTP information from described data base;
Wherein, described multimedia file record includes field name, field type and file type information, and described inquiry request includes field name information; Storage multimedia file in the database is flow object; Described field type is stream file type;
Also include:
Client display module, for showing described multimedia file in client.
CN201010121306.4A 2010-03-09 2010-03-09 The storage method and system of multimedia file, read method and system Expired - Fee Related CN102195936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010121306.4A CN102195936B (en) 2010-03-09 2010-03-09 The storage method and system of multimedia file, read method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010121306.4A CN102195936B (en) 2010-03-09 2010-03-09 The storage method and system of multimedia file, read method and system

Publications (2)

Publication Number Publication Date
CN102195936A CN102195936A (en) 2011-09-21
CN102195936B true CN102195936B (en) 2016-06-15

Family

ID=44603331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010121306.4A Expired - Fee Related CN102195936B (en) 2010-03-09 2010-03-09 The storage method and system of multimedia file, read method and system

Country Status (1)

Country Link
CN (1) CN102195936B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102841918B (en) * 2012-06-29 2016-05-04 用友网络科技股份有限公司 Binary system long object fluidisation data processing equipment and method
CN104349174B (en) * 2013-08-05 2017-12-19 浙江大华系统工程有限公司 Audio, video data Transmission system, storage and generation method, device and equipment
CN104462129B (en) * 2013-09-22 2018-05-25 北大方正集团有限公司 Distributed document stores and querying method and access system
US10757186B2 (en) 2015-03-02 2020-08-25 Microsoft Technology Licensing, Llc Uploading user and system data from a source location to a destination location
CN105653719A (en) * 2016-01-06 2016-06-08 上海斐讯数据通信技术有限公司 Method and system for rapidly acquiring files of external storage equipment and router

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1476224A (en) * 2003-07-08 2004-02-18 联想(北京)有限公司 Method and device for machine group system monitoring
CN101232523A (en) * 2007-01-25 2008-07-30 财团法人工业技术研究院 Method and apparatus for simplifying service interface to access network service
CN101375268A (en) * 2006-01-27 2009-02-25 Unz.Org有限责任公司 Presenting digitized content on a network
CN101500108A (en) * 2009-02-17 2009-08-05 华硕电脑股份有限公司 Multimedia archive sharing method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050102371A1 (en) * 2003-11-07 2005-05-12 Emre Aksu Streaming from a server to a client
CN101272477A (en) * 2007-03-22 2008-09-24 华为技术有限公司 IPTV system, medium service apparatus and IPTV program searching and locating method
CN101626376A (en) * 2009-08-04 2010-01-13 中国联合网络通信集团有限公司 Set-top box (STB) file uploading methods, STB file uploading device and STB file uploading system based on internet protocol television (IPTV)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1476224A (en) * 2003-07-08 2004-02-18 联想(北京)有限公司 Method and device for machine group system monitoring
CN101375268A (en) * 2006-01-27 2009-02-25 Unz.Org有限责任公司 Presenting digitized content on a network
CN101232523A (en) * 2007-01-25 2008-07-30 财团法人工业技术研究院 Method and apparatus for simplifying service interface to access network service
CN101500108A (en) * 2009-02-17 2009-08-05 华硕电脑股份有限公司 Multimedia archive sharing method and system

Also Published As

Publication number Publication date
CN102195936A (en) 2011-09-21

Similar Documents

Publication Publication Date Title
US8315977B2 (en) Data synchronization between a data center environment and a cloud computing environment
CN103812939B (en) Big data storage system
US20090216796A1 (en) Relational objects for the optimized management of fixed-content storage systems
CN102385633B (en) File management system using virtual storage directory
CN102195936B (en) The storage method and system of multimedia file, read method and system
US20110307534A1 (en) Distributed file system supporting data block dispatching and file processing method thereof
US10574792B2 (en) Referencing change(s) in data utilizing a network resource locator
CN104641614A (en) Systems and methods for scalable structured data distribution
US10579597B1 (en) Data-tiering service with multiple cold tier quality of service levels
WO2018205981A1 (en) Metadata management
CN110727406A (en) Data storage scheduling method and device
CN113836094B (en) File life cycle management method and system for distributed video storage
CN117171108B (en) Virtual model mapping method and system
EP3577587B1 (en) Satellite and central asset registry systems and methods and rights management systems
CN107479827A (en) A kind of mixing storage system implementation method based on IO and separated from meta-data
CN109308310B (en) Subsystem data interconnection processing method for asset management platform
US11474981B2 (en) Database dual-core storage system based on optical disk and method using the system
KR101508068B1 (en) Apparatus and method for data de-duplication
US20220035872A1 (en) Direct cloud storage intake and upload architecture
CN117131080A (en) Data processing platform based on stream processing and message queue
CN110888847B (en) Recycle bin system and file recycling method
JP2013546072A (en) Autonomous intelligent content items
CN105389368A (en) Method for managing metadata of database cluster of MPP architecture
US11829343B2 (en) Generating a business object
CN111970381B (en) File deduplication, addition and uploading method, system, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160615

Termination date: 20170309

CF01 Termination of patent right due to non-payment of annual fee