Hello,
I have a problem showing images and documents when smartclient is started outside the office (connected to the applicationserver through the firewall, NO VPN).
Maybe the problem is that the images and documents are stored on an other server. See the following calculation for better understanding:
function calculation_photo() {
var vdat;
var vbild = "//Servername/Photopath/" + id_nr + ".jpg";
if (plugins.file.getFileSize(vbild)>0) {
´ vdat = plugins.file.readFile(vbild) ;
} else {
vdat = plugins.file.readFile("//Servername/Photopath/NoPic.jpg") ;
}
return vdat;
}
Everything is fine when starting the smartclient within our network. On external place I get the “File open” Dialogue when opening a form with the calculated media field.
How is it possible to show images from a fileserver when I am outside the office?