Skip to main content
Kofax

Image from UNC path not displayed in Document Viewer

Question / Problem: 

When I load an image into the DocumentViewer from a local drive, the image displays okay. However, when I try loading from a UNC path, no image is displayed. Is there a solution for this issue?

Answer / Solution: 

There are two solutions:

1. Use a mapped drive letter path.

2. When a UNC path is detected, the back slashes need to be fully escaped:

\\barrdc\Atalasoft$\ttr-Winchester.png

would need to be fully escaped in this manner:

\\\\barrdc\\Atalasoft$\\ttr-Winchester.png

You could code this in JavaScript. Assuming you have a JavaScript var foo:

var foo = '\\barrdc\Atalasoft$\ttr-Winchester.png'

you could try using the global replace operator (g) as follows:

var bar = foo.replace(/\\/g, '\\\\');

which should produce the correct escaped path:

\\\\barrdc\\Atalasoft$\\ttr-Winchester.png

 

Applies to:  

Product Version
WebCapture 10
  11.0
  11.1
 
  • Was this article helpful?