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 ();