Select to view content in your preferred language

Is is possible to display photos in a PopUp using a directory of photos that resides

905
5
Jump to solution
10-03-2012 08:01 AM
MichaelMiller2
Frequent Contributor
Is is possible to display photos in a PopUp using a directory of photos that resides on a file share that is not a ArcGIS server?

We have a photo library of some 6K photos and a attribute in the point data set pointing to the photo location and file. I am trying to get each photo to display in the popup. I have a feeling the photos need to reside on the ArcGIS server to facilitate this. But, we currently do not have the room to place a copy of them on the ArcGIS server.

I'm looking for  a way of displaying the photos without placing a copy of them on the server, if possible.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Michael,

   Web based apps in general should always avoid using logical drives or UNC paths when code is run on client side. Flex in general does not have access to the clients local file system unless using filereference object from a mouse click. Depending on where your code actually gets executed a path that is not a url will like be interpreted as a path that exists on the client machine instead of the server.

View solution in original post

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Michael,

   Absolutely... Just create a virtual directory in IIS on your web server that points to the UNC Path of the photos folder on the other server. In your data make sure the attribute either uses the full url of your virtual directory plus image or you will need to add the url prefix to your imagesource in the popup media tag.
0 Kudos
MichaelMiller2
Frequent Contributor
Michael,

   Absolutely... Just create a virtual directory in IIS on your web server that point to the UNC Patch of the photos folder on the other server. In your data make sure the attribute either uses the full url of your virtual directory plus image or you will need to add the url prefix to your imagesource in the popup media tag.



Thank you Robert!
0 Kudos
MichaelMiller2
Frequent Contributor
Michael,

   Absolutely... Just create a virtual directory in IIS on your web server that points to the UNC Path of the photos folder on the other server. In your data make sure the attribute either uses the full url of your virtual directory plus image or you will need to add the url prefix to your imagesource in the popup media tag.


Robert,

Being a relative newbie with FLEX, etc, I have a question as to why the photos have to either be on the IIS server or pointed to via a virtual IIS directory?  Just curious....
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   Web based apps in general should always avoid using logical drives or UNC paths when code is run on client side. Flex in general does not have access to the clients local file system unless using filereference object from a mouse click. Depending on where your code actually gets executed a path that is not a url will like be interpreted as a path that exists on the client machine instead of the server.
0 Kudos
MichaelMiller2
Frequent Contributor
Michael,

   Web based apps in general should always avoid using logical drives or UNC paths when code is run on client side. Flex in general does not have access to the clients local file system unless using filereference object from a mouse click. Depending on where your code actually gets executed a path that is not a url will like be interpreted as a path that exists on the client machine instead of the server.



Thank you.  Every bit of information adds to my understanding and I so appreciate this forum.

Thanks Robert!
0 Kudos