A SERVICE OF

logo

16 Chapter 2
\\STOR1\source” and write the output to a web server with a UNC path of
\\WEB1\retail1\images”, append the entries to your local.properties file, as in
the following example:
virtualfilesystem.retailIN=\\\\STOR1\\source
virtualfilesystem.retailOUT=\\\\WEB1\\retail1\\images
NOTE The backslash character (\) is the escape character for MediaRich properties files. All
backslashes in the path must be escaped with an additional backslash.
Before you can use the new file system aliases you must restart the MediaGenerator
service.
The corresponding load() and save() operations would look like:
image.load(name @ "retailIN:/camera.psd");
image.save(name @ "retailOUT:/camera.jpg");
File Filesystem
The file filesystem allows standard “file” URLs to be supplied to MediaScript functions
that take filenames. This filesystem allows access to any file on the MediaRich server,
including files available via UNC paths (files on the network).
Because this filesystem allows such broad access to resources, it is read-only and disabled
by default.
To enable the filesystem, add the following line to the local.properties file:
filesystem.file.enabled=true
To make the filesystem writable, add the following line:
filesystem.file.writeable=true
Examples
var image = new Media();
image.load(name @ "file:C:/Documents and Settings/All
Users/Documents/My Pictures/Sample Pictures/Sunset.jpg");
var image2 = new Media();
image2.load(name @
"file://eqfileserv/home/eng/testbed/images/tif/32bit.tif");