Format and location of image files
You can save images in any format whose MIME type is defined in IIS, so standard formats such as gif, wmf, and jpeg are all acceptable.
When you set up a new project that uses images, the best place to put those images is in the project folder. You can use a subfolder in the project folder, but in this case you have to include the subfolder name in the image filenames when you refer to them in the script. When you activate the project, the images are copied with the other project files into the appropriate folders.
When you run the first interview on a project, the interviewing program copies all the project’s images to a central repository known as the image cache, and subsequently looks for images in that location. The default location for the image cache is FMRoot\Master\Projects in the UNICOM Intelligence Interviewer - Server installation folder. If you update images during the course of a project and reactivate the project, the image cache is updated with the latest version of the file. If you do not want to reactivate, copy the updated files into image cache folder manually.
Images that are shared across projects can be stored in the SPSSMR_FMROOT\Shared\Content folder to avoid multiple copies of the same image. To refer to images in this folder you must enter the full URL of the file. This might vary depending on how UNICOM Intelligence Interviewer - Server was installed; a typical URL is:
http://<image_server_computer>/mrIWeb/Images/MyImage.gif
<image_server_computer> is the name of your image server. Do not use the %image_cache%/filename notation that is used in scripts created by the Build activity, as this does not work outside Build.
When you test a script, your browser caches any images you use. If you change an image and then retest your script, the interviewing program uses the browser’s cached version of the image rather than the updated version, even if you manually copy the new file into the image cache folder. The only way to access the new image in the image cache is to close and reopen your browser. This does not apply to respondents taking live interviews because they are unlikely to take an interview more than once.
See also