11.13 what is media? What is media reference? Local synchronization of media reference?

Source: Internet
Author: User

Media represents a variety of files, which are stored in data in a unified manner. When media is used, we call it reference to media, or media reference for short. When media is stored in data, large data files may be several MB or dozens of MB. It is not necessary to load these files into the memory each time you read and write media references. The performance consumption for reading and writing these big data files is very high.

 

Component:IBeamMDAACommon. dll

Namespace:IBeam. MDAA. Objects (Business Object)

Example:

 

Definition of media reference:

 

 

Data Loading:

Assignment of media reference in Editing:

 

Data is stored in the database in a unified manner. If necessary, files can be synchronized to the local computer. If it is a desktop Winform application, the files will be synchronized to the installation directory of the application: \ UploadFile \ Media \ directory. to synchronize the Media to a local directory, use the following method:

_ MediaReference. SynchronizeFile ();

 

To obtain the complete local path of a media set, use the following method:

String defaultFileName = _ MediaReference. GetFullPath ();

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.