How to reference images stores in a file share (Image on Disk)

Modified on Tue, 13 Aug at 9:02 AM

Here are the instructions for setting up an ‘image on disk’ Image field  which enables the use of a shared folder containing jpegs to pull into an EasyBadge Image on disk field using a unique reference.

 

1. Ensure all jpeg images are held in a folder that the EasyBadge user has full access too. Also ensure all images are saved with a unique id and that id is in a database table( eg Id or StudentNumber etc)

 

2. Click the options button (3 lines top left) and select modify database, then click add field.

 

3.  In field list scroll down and select ‘Image on disk’, then click ‘Create’

 

 

4.  In the Data section of the field properties in the ‘Default’ line enter the path and field information and click save.

               In the below example the folder is set to c:\temp\

 

                The field being referenced is the ‘Id Number’ field. This is the field that must contain the unique reference (name of                 jpeg’s)


               Mapped drive example

 

                The complete string to be entered is

                  "C:\\temp\\" + ID Number + ".jpg" 


                UNC location example


                @"\\saturn\hrimages\"+Id_Number+".jpg"

 

For the command to work, quotes , backslashes and spaces must be included as per the example below

 

 

 

5. You now need to close the database and re-open it.

 

6. Your Images should now display in the Image on disk area like so..

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article