# Serving Images and Other Files

Pozi can display and link to images and documents within internal networks and on the web.

You can configure Pozi Server to access internal files that stored on a network drive by setting up a Windows symbolic link (symlink).

In this example, Pozi Server is configured to access any file within the organisation's image library, which is located at \\HRCCSVRFILE01\shared\Images.

In a command prompt (administrator mode), enter the following:

mklink /D "C:\Program Files (x86)\Pozi\userdata\local\images" "\\HRCCSVRFILE01\shared\Images"

Symlink example

This creates a virtual file path within the Pozi userdata folder to enable Pozi Server to access the network folder.

Now, any files that are located relative to the source folder can now be served by Pozi using https://local.pozi.com/images/ as the prefix.

For example:

  • source file path: \\HRCCSVRFILE01\shared\Images\Bridges\img_1001.jpg
  • new URL: https://local.pozi.com/images/Bridges/img_1001.jpg

Update the image paths in the source data accordingly by prepending the URL prefix to any reference to the file name. This can be done within the data itself, or as a string expression if using a database view or VRT file.

In this example, the bridges dataset contains a field name called image_file_name which is populated with values like img_1001.jpg. The customised query (in SQLite format) uses a string expression to add a new field called photo containing the full image URL.

<?xml version="1.0" encoding="UTF-8"?>
    <OGRVRTLayer name="bridges">
        <SrcSQL dialect="sqlite">
                'https://local.pozi.com/images/Bridges/' || image_file_name as photo
            from bridges