CN102195936A - Method and system for storing multimedia file and method and system for reading multimedia file - Google Patents

Method and system for storing multimedia file and method and system for reading multimedia file Download PDF

Info

Publication number
CN102195936A
CN102195936A CN2010101213064A CN201010121306A CN102195936A CN 102195936 A CN102195936 A CN 102195936A CN 2010101213064 A CN2010101213064 A CN 2010101213064A CN 201010121306 A CN201010121306 A CN 201010121306A CN 102195936 A CN102195936 A CN 102195936A
Authority
CN
China
Prior art keywords
multimedia file
database
server
type
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010101213064A
Other languages
Chinese (zh)
Other versions
CN102195936B (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

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for storing a multimedia file. The method comprises the following steps of: submitting a request for uploading the multimedia file to a server through a client; and converting the corresponding multimedia file into a stream object according to the request and storing the stream object into a database by using the server. The invention further discloses a method for reading the multimedia file. The method for reading the multimedia file comprises the following steps of: submitting an inquiry request of the multimedia file through the client; searching a corresponding multimedia file record from the database according to the inquiry request and issuing the multimedia file record in an HTTP (Hyper Text Transport Protocol) mode by using the server; and extracting a corresponding multimedia file according to HTTP information by using the client. According to the method for storing the multimedia file and the method for reading the multimedia file, the file storage security can be ensured and the occupation of a disk space is reduced on the basis of not influencing the access operation of the multimedia file.

Description

The storage means of multimedia file and system, read method and system
Technical field
The present invention relates to the technical field of data access, particularly relate to the storage system of the read method of a kind of storage means of multimedia file, a kind of multimedia file, a kind of multimedia file and a kind of reading system of multimedia file.
Background technology
Along with the continuous development in computer and network technologies ground, enterprise and the user computer cluster that satisfies the miscellaneous service demand of having set up Network Based more and more.The computer of cluster inside is worked independently of each other, and the as a whole service that provides externally is provided.As weather forecast, the program record and broadcast of TV station, all be that a computer cluster is finished usually.For soft, hardware resource in the management cluster better, monitoring technique arises at the historic moment.Whether simply, monitoring technique is exactly that the ruuning situation of computer software and hardware, task implementation status etc. is write down or long-range watching, normal with every index of understanding computer.
For making the supervisory control system can be better and user interactions, usually need dispose the multi-medium data resource on the backstage, as audio frequency, image etc., generally speaking, in the server of supervisory control system, can open up a disk space (database) usually specially and deposit these multimedia files, each file separate, stored, under the audio file folder as the dish of D in the A server, deposit warning information 1.wav, warning information 2.wav, three audio files of warning information 3.wav; In the B server, under the image folder of E dish, deposit two image files of adapter .jpg, switch .jpg.
Yet the mode of this unique file storage very easily is not intended to or deliberately modification by artificial in practice, and as deletion, replacement etc., fail safe is difficult to guarantee, and relatively takies disk space.
Therefore, need the urgent technical problem that solves of those skilled in the art to be exactly at present: the access mechanism that how can propose a kind of multimedia file with innovating, in order on the basis that does not influence the multimedia file accessing operation, guarantee the fail safe that file is deposited, and reduce taking of disk space.
Summary of the invention
Technical problem to be solved by this invention provides a kind of access method and system of multimedia file, in order on the basis that does not influence the multimedia file accessing operation, guarantees the fail safe that file is deposited, and reduces taking of disk space.
In order to solve the problems of the technologies described above, the embodiment of the invention discloses a kind of storage means of multimedia file, comprising:
Submit the request that multimedia file is uploaded onto the server to by client;
Server is converted to flow object with corresponding multimedia file, and is stored in the database according to described request.
Preferably, described server stores multimedia files further comprises:
At described multimedia file allocation field name, field type and file type information, be stored as the corresponding database record, described field type is the stream file type.
Preferably, the database in the described server is a SQL Server database, and described field type is the Image type; Perhaps, the database in the described server is an oracle database, and described field type is the Blob type.
The embodiment of the invention also discloses a kind of read method of multimedia file, comprising:
Submit the query requests of multimedia file to by client;
Server retrieves corresponding multimedia file record according to described query requests in database, and described multimedia file record is issued in the mode of HTTP;
Client is according to the corresponding multimedia file of described HTTP information extraction.
Preferably, described multimedia file record comprises field name, field type and file type information, comprises field name information in the described query requests.
Preferably, described method also comprises:
At the described multimedia file of client shows.
The embodiment of the invention also discloses a kind of storage system of multimedia file, comprising:
The client upload request module is used for submitting the request that multimedia file is uploaded onto the server in client;
The server stores module is used for according to described request, corresponding multimedia file is converted to flow object, and is stored in the database.
Preferably, described server stores module further comprises:
The information distribution submodule is used at described multimedia file allocation field name, field type and file type information, and described field type is the stream file type;
Preserve submodule, being used for according to described field name, field type and file type information stores is the corresponding database record.
Preferably, the database in the described server is a SQL Server database, and described field type is the Image type; Perhaps, the database in the described server is an oracle database, and described field type is the Blob type.
The embodiment of the invention also discloses a kind of reading system of multimedia file, comprising:
Module is submitted in the client query request to, is used for submitting to by client the query requests of multimedia file;
The server retrieves release module is used for retrieving corresponding multimedia file record according to described query requests in database, and described multimedia file record is issued in the mode of HTTP;
The client resource extraction module is used for according to the corresponding multimedia file of described HTTP information extraction.
Preferably, described multimedia file record comprises field name, field type and file type information, comprises field name information in the described query requests.
Preferably, described system also comprises:
The client shows module is used at the described multimedia file of client shows.
Compared with prior art, the present invention has the following advantages:
The present invention is stored in multimedia file in the database table with the binary stream form, because database table itself is as a file, adopt this storage mode can comprise a plurality of files, and, because database is generally by authority unified management control, thereby effectively avoided file by the risk of user's modification, can be on the basis that does not influence the multimedia file accessing operation, guarantee the fail safe that file is deposited, and the storage mode of this database table also helps reducing taking of disk space.
Description of drawings
Fig. 1 is the flow chart of the storage means embodiment of 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.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
In practice, the multi-medium data resource of backstage configuration can exchange between client and server usually, generally speaking, the mode that described client and server carry out the multi-medium data Resource Exchange has two kinds: a kind of is that client is uploaded local image and audio files, store under certain field in the database table in the mode of database, promptly in database, insert image and sound; Another kind is these images and the sound in the client-access database, promptly takes out these images and sound from database.
Below will describe in detail above-mentioned exchanged form respectively by different embodiment.
With reference to figure 1, show the flow chart of the storage means embodiment of a kind of multimedia file of the present invention, specifically can may further comprise the steps:
Step 101, submit the request that multimedia file is uploaded onto the server to by client;
Step 102, server are converted to flow object with corresponding multimedia file, and are stored in the database according to described request.
In specific implementation, described server can be according to the multimedia file upload request of client submission, extract corresponding multimedia file, and, be stored as the corresponding database record then at described multimedia file allocation field name, field type and file type information.
Need to prove that in embodiments of the present invention, described flow object refers to binary stream, as binary system array (byte[]); Described field type is the stream file type.
In practice, the database that is arranged in the server can be SQL Server database, and then the field type of described multimedia file can be represented with the Image type; As another embodiment, the database that is located in the server can be oracle database, and then the field type of described multimedia file can be represented with the Blob type.
Below be example with the oracle database, specify the storage organization of multimedia file of the present invention.Suppose to set present image file, audio files storage under the Value field, as shown in table 1:
Table 1:
Field name Field type Whether be empty Explanation
Resid Varchar(50) Not?Null The name of image or sound
Value Blob Null Memory image or sound
Type Int(4) Not?null Type judges that 0 is picture, 1 sound
After the upload request of submitting a switch picture file to, the respective record that server is preserved in database is as shown in table 2:
Resid Value Type
Switch <BLOB> 0
For making those skilled in the art understand the present invention better, below describe multimedia file storing process of the present invention in detail by an object lesson:
The first step, on the interface of client upload multimedia file, the picture or the audio file of selected client terminal local to be uploaded;
Second step, server are carried out upload operation, and picture selected or audio file are converted to the binary stream file, and are deposited into formation corresponding database record in the table 2.
With reference to figure 2, show the flow chart of the read method embodiment of a kind of multimedia file of the present invention, specifically can may further comprise the steps:
Step 201, submit the query requests of multimedia file to by client;
Step 202, server retrieve corresponding multimedia file record according to described query requests in database, and described multimedia file record is issued in the mode of HTTP;
Step 203, client are according to the corresponding multimedia file of described HTTP information extraction.
In specific implementation, described multimedia file record can comprise information such as field name, field type and file type, can comprise field name information in the then described query requests.
In a kind of preferred embodiment of the present invention, can also may further comprise the steps:
Step 204, at the described multimedia file of client shows.
For making those skilled in the art understand the present invention better, below describe multimedia file of the present invention in detail by an object lesson and read process:
The first step, client are submitted the query requests of multimedia file to;
Second step, service end-apparatus retrieve corresponding record, and there are multimedia file in the database in these according to querying condition in database, issue to client by the mode of Http.
Be specifically as follows, dispose a Servlet (GetImageServlet) at server end, then Fa Bu http address is:
Http: // 192.168.1.205:8080/nvmserver/GetImageServlet? the resid=switch;
Wherein, 192.168.1.205 is the IP address of server end, and 8080 is port numbers, and resid is the Resid of visit picture or audio file, specifically can be with reference to the related content in the table 1.
The 3rd step, the above-mentioned http of client-access address obtain corresponding multimedia file, promptly have access to the image of switch.
Need to prove, for aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to 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, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
With reference to figure 3, show the structured flowchart of the storage system embodiment of a kind of multimedia file of the present invention, specifically can comprise:
Client upload request module 301 is used for submitting the request that multimedia file is uploaded onto the server in client;
Server stores module 302 is used for according to described request, corresponding multimedia file is converted to flow object, and is stored in the database.
In a preferred embodiment of the present invention, described server stores module may further include following submodule:
The information distribution submodule is used at described multimedia file allocation field name, field type and file type information, and described field type is the stream file type;
Preserve submodule, being used for according to described field name, field type and file type information stores is the corresponding database record.
In specific implementation, the database in the described server can be SQL Server database, and described field type is the Image type; Perhaps, the database in the described server is an oracle database, and described field type is the Blob type.
Because system embodiment shown in Figure 3 is substantially corresponding to aforementioned method embodiment shown in Figure 1, so not detailed part in the description of present embodiment can just not given unnecessary details at this referring to the related description in the previous embodiment.
With reference to figure 4, show the structured flowchart of the reading system embodiment of a kind of multimedia file of the present invention, specifically can comprise:
Module 401 is submitted in the client query request to, is used for submitting to by client the query requests of multimedia file;
Server retrieves release module 402 is used for retrieving corresponding multimedia file record according to described query requests in database, and described multimedia file record is issued in the mode of HTTP;
Client resource extraction module 403 is used for according to the corresponding multimedia file of described HTTP information extraction.
In specific implementation, described multimedia file record can comprise information such as field name, field type and file type, correspondingly, can comprise field name information in the described query requests.
In a preferred embodiment of the present invention, described system can also comprise as lower module:
Client shows module 404 is used at the described multimedia file of client shows.
Because system embodiment shown in Figure 4 is substantially corresponding to aforementioned method embodiment shown in Figure 2, so not detailed part in the description of present embodiment can just not given unnecessary details at this referring to the related description in the previous embodiment.
The present invention can be used in numerous general or special purpose computingasystem environment or the configuration.For example: multicomputer system, server, network PC, minicom, mainframe computer, comprise distributed computing environment (DCE) of above any system or equipment or the like.
The present invention can describe in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in distributed computing environment (DCE), put into practice the present invention, in these distributed computing environment (DCE), by by communication network connected teleprocessing equipment execute the task.In distributed computing environment (DCE), program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
More than the storage system of the read method of the storage means of a kind of multimedia file provided by the present invention, a kind of multimedia file, a kind of multimedia file and a kind of reading system of multimedia file are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (12)

1. the storage means of a multimedia file is characterized in that, comprising:
Submit the request that multimedia file is uploaded onto the server to by client;
Server is converted to flow object with corresponding multimedia file, and is stored in the database according to described request.
2. the method for claim 1 is characterized in that, described server stores multimedia files further comprises:
At described multimedia file allocation field name, field type and file type information, be stored as the corresponding database record, described field type is the stream file type.
3. method as claimed in claim 2 is characterized in that, the database in the described server is a SQL Server database, and described field type is the Image type; Perhaps, the database in the described server is an oracle database, and described field type is the Blob type.
4. the read method of a multimedia file is characterized in that, comprising:
Submit the query requests of multimedia file to by client;
Server retrieves corresponding multimedia file record according to described query requests in database, and described multimedia file record is issued in the mode of HTTP;
Client is according to the corresponding multimedia file of described HTTP information extraction.
5. method as claimed in claim 4 is characterized in that, described multimedia file record comprises field name, field type and file type information, comprises field name information in the described query requests.
6. as claim 4 or 5 described methods, it is characterized in that, also comprise:
At the described multimedia file of client shows.
7. the storage system of a multimedia file is characterized in that, comprising:
The client upload request module is used for submitting the request that multimedia file is uploaded onto the server in client;
The server stores module is used for according to described request, corresponding multimedia file is converted to flow object, and is stored in the database.
8. system as claimed in claim 7 is characterized in that, described server stores module further comprises:
The information distribution submodule is used at described multimedia file allocation field name, field type and file type information, and described field type is the stream file type;
Preserve submodule, being used for according to described field name, field type and file type information stores is the corresponding database record.
9. system as claimed in claim 8 is characterized in that, the database in the described server is a SQL Server database, and described field type is the Image type; Perhaps, the database in the described server is an oracle database, and described field type is the Blob type.
10. the reading system of a multimedia file is characterized in that, comprising:
Module is submitted in the client query request to, is used for submitting to by client the query requests of multimedia file;
The server retrieves release module is used for retrieving corresponding multimedia file record according to described query requests in database, and described multimedia file record is issued in the mode of HTTP;
The client resource extraction module is used for according to the corresponding multimedia file of described HTTP information extraction.
11. system as claimed in claim 10 is characterized in that, described multimedia file record comprises field name, field type and file type information, comprises field name information in the described query requests.
12. as claim 10 or 11 described systems, it is characterized in that, also comprise:
The client shows module is used at the described multimedia file of client shows.
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 true CN102195936A (en) 2011-09-21
CN102195936B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102841918A (en) * 2012-06-29 2012-12-26 用友软件股份有限公司 Method and device for processing binary system long-object fluidized data
CN104349174A (en) * 2013-08-05 2015-02-11 浙江大华系统工程有限公司 Audio/video data transmission system, audio/video data storage method, audio/video data generation method, audio/video data storage device, audio/video data generation device, audio/video data storage equipment and audio/video data generation equipment
CN104462129A (en) * 2013-09-22 2015-03-25 北大方正集团有限公司 Distributed file storage and query method and distributed file access system
CN105653719A (en) * 2016-01-06 2016-06-08 上海斐讯数据通信技术有限公司 Method and system for rapidly acquiring files of external storage equipment and router
WO2016138609A1 (en) * 2015-03-02 2016-09-09 Microsoft Technology Licensing, Llc Uploading user and system data from a source location to a destination location

Citations (7)

* 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
CN1902865A (en) * 2003-11-07 2007-01-24 诺基亚有限公司 Streaming from a server to a client
CN101232523A (en) * 2007-01-25 2008-07-30 财团法人工业技术研究院 Method and apparatus for simplifying service interface to access network service
CN101272477A (en) * 2007-03-22 2008-09-24 华为技术有限公司 IPTV system, medium service apparatus and IPTV program searching and locating method
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
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 (7)

* 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
CN1902865A (en) * 2003-11-07 2007-01-24 诺基亚有限公司 Streaming from a server to a client
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
CN101272477A (en) * 2007-03-22 2008-09-24 华为技术有限公司 IPTV system, medium service apparatus and IPTV program searching and locating method
CN101500108A (en) * 2009-02-17 2009-08-05 华硕电脑股份有限公司 Multimedia archive sharing method and system
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)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102841918A (en) * 2012-06-29 2012-12-26 用友软件股份有限公司 Method and device for processing binary system long-object fluidized data
CN102841918B (en) * 2012-06-29 2016-05-04 用友网络科技股份有限公司 Binary system long object fluidisation data processing equipment and method
CN104349174A (en) * 2013-08-05 2015-02-11 浙江大华系统工程有限公司 Audio/video data transmission system, audio/video data storage method, audio/video data generation method, audio/video data storage device, audio/video data generation device, audio/video data storage equipment and audio/video data generation equipment
CN104349174B (en) * 2013-08-05 2017-12-19 浙江大华系统工程有限公司 Audio, video data Transmission system, storage and generation method, device and equipment
CN104462129A (en) * 2013-09-22 2015-03-25 北大方正集团有限公司 Distributed file storage and query method and distributed file access system
CN104462129B (en) * 2013-09-22 2018-05-25 北大方正集团有限公司 Distributed document stores and querying method and access system
WO2016138609A1 (en) * 2015-03-02 2016-09-09 Microsoft Technology Licensing, Llc Uploading user and system data from a source location to a destination location
CN107111649A (en) * 2015-03-02 2017-08-29 微软技术许可有限责任公司 User and system data are uploaded into destination locations from source position
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

Also Published As

Publication number Publication date
CN102195936B (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN108874971B (en) Tool and method applied to mass tagged entity data storage
CN109947668B (en) Method and device for storing data
CN103812939B (en) Big data storage system
CN108536778B (en) Data application sharing platform and method
US20130191523A1 (en) Real-time analytics for large data sets
US20110307534A1 (en) Distributed file system supporting data block dispatching and file processing method thereof
CN103605698A (en) Cloud database system used for distributed heterogeneous data resource integration
CN104679665A (en) Method and system for achieving block storage of distributed file system
CN103067461A (en) Metadata management system of document and metadata management method thereof
US10579597B1 (en) Data-tiering service with multiple cold tier quality of service levels
CN102195936B (en) The storage method and system of multimedia file, read method and system
CN110727406A (en) Data storage scheduling method and device
JP2022550401A (en) Data upload method, system, device and electronic device
CN104615785A (en) Data storage method and device based on TYKY cNosql
CN113836094B (en) File life cycle management method and system for distributed video storage
CN108763323A (en) Meteorological lattice point file application process based on resource set and big data technology
CN103853612A (en) Method for reading data based on digital family content under distributed storage
CN102904917A (en) Mass image processing system and method thereof
US11436193B2 (en) System and method for managing data using an enumerator
KR101508068B1 (en) Apparatus and method for data de-duplication
US11474981B2 (en) Database dual-core storage system based on optical disk and method using the system
CN112115206A (en) Method and device for processing object storage metadata
CN116049144A (en) Data storage method, data reading device and electronic equipment
CN110888847B (en) Recycle bin system and file recycling method
CN105389368A (en) Method for managing metadata of database cluster of MPP architecture

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160615

Termination date: 20170309