Hi, any example how to do it using CFContent?
<cfset theFile = " \\servername\nameofshare\clientname\CF_Chart_Share\testimage.jpg"> <cfif fileExists(theFile)> *exists* <cfelse> does not exist <br> </cfif> <img src="\\servername\nameofshare\clientname\CF_Chart_Share\testimage.jpg"> ok I tried this code and i get message *exists*, but still image not being when i run the page. I also tried appending file: i.e. file:\\servername\nameofshare\clientname\CF_Chart_Share\testimage.jpg<file:///\\servername\nameofshare\clientname\CF_Chart_Share\testimage.jpg> but it didnt for img tag and it didnt work for fileExists condition which gives me does not exist. so we know now, \\servername\nameofshare\clientname\CF_Chart_Share\testimage.jpg<file://servername/nameofshare/clientname/CF_Chart_Share/testimage.jpg> works but it doesnt work in img tag. Any suggestions? On 5/12/08, Dean H. Saxe <[EMAIL PROTECTED]> wrote: > > > That won't work unless your clients have access to the specific share... > You will need to serve it up using CFContent if it is outside the web > root. > > > On May 12, 2008, Ajas Mohammed wrote: > > Hi, > > > > I did try <img src = > > "file:\\nameofshare\clientname\CF_Chart_Share\testimage.jpg"> before and > > it > > didnt work obviously bcause of missing servername. > > > > I didnt try with servername yet. Let me do that and I will update as to > > what > > happened. > > > > Thanks all. > > > > Ajas. > > > > > > On 5/12/08, Howard Fore <[EMAIL PROTECTED]> wrote: > > > > > > > > Err, wrong slashdirection.... > > > > > > > > > "file://///servername/nameofshare/clientname/CF_Chart_Share/testimage.jpg" > > > > > > On Mon, May 12, 2008 at 9:59 AM, Howard Fore <[EMAIL PROTECTED]> > > > wrote: > > > > > > > You can't use the bare fileshare address like that, you have to put > > > > "file://" in front. So your example would become > > > > > > > "file://///servername/nameofshare\clientname\CF_Chart_Share\testimage.jpg". > > > > > > > > > > > > On Mon, May 12, 2008 at 9:42 AM, Ajas Mohammed <[EMAIL PROTECTED]> > > > > wrote: > > > > > > > > > Hi, > > > > > > > > > > We have a network share where the CFChart images get stored. > > > > > If I try to access the network share like this in CF page, the > > > image > > > > > is not displayed. > > > > > > > > > > <img src = > > > "\\nameofshare\clientname\CF_Chart_Share\testimage.jpg"> > > > > > > > > > > I am missing something here? The permissions etc are fine on the > > > > > network machine i.e. from the CF webserver, I am able to access > > > the network > > > > > share using the same src addr i.e. > > > > > \\nameofshare\clientname\CF_Chart_Share\testimage.jpg > > > > > > > > > > Any better alternatives you can suggest? I dont want to use IP > > > > > address. > > > > > > > > > > -- > > > > > <Ajas Mohammed /> > > > > > http://ajashadi.blogspot.com > > > > > No matter what, find a way. Because thats what winners do. > > > > > You can't improve what you don't measure. > > > > > Quality is never an accident; it is always the result of high > > > > > intention, sincere effort, intelligent direction and skillful > > > execution; it > > > > > represents the wise choice of many alternatives. > > > > > "Live as if you were to die tomorrow. Learn as if you were to live > > > > > forever." > > > > > > > > > > ------------------------------------------------------------- > > > > > To unsubscribe from this list, manage your profile @ > > > > > http://www.acfug.org?fa=login.edituserform<http://www.acfug.org/?fa=login.edituserform> > > > <http://www.acfug.org/?fa=login.edituserform> > > > > > > > > > > For more info, see http://www.acfug.org/mailinglists > > > > > Archive @ http://www.mail-archive.com/discussion%40acfug.org/ > > > > > List hosted by FusionLink <http://www.fusionlink.com/> > > > > > ------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Howard Fore, [EMAIL PROTECTED] > > > > "The universe tends toward maximum irony. Don't push it." - Jeff > > > Atwood > > > > > > > > > > > > > > > -- > > > Howard Fore, [EMAIL PROTECTED] > > > "The universe tends toward maximum irony. Don't push it." - Jeff > > > Atwood > > > ------------------------------------------------------------- > > > To unsubscribe from this list, manage your profile @ > > > http://www.acfug.org?fa=login.edituserform<http://www.acfug.org/?fa=login.edituserform> > > > <http://www.acfug.org/?fa=login.edituserform> > > > > > > For more info, see http://www.acfug.org/mailinglists > > > Archive @ http://www.mail-archive.com/discussion%40acfug.org/ > > > List hosted by FusionLink <http://www.fusionlink.com/> > > > ------------------------------------------------------------- > > > > > > > > > > > > -- > > <Ajas Mohammed /> > > http://ajashadi.blogspot.com > > No matter what, find a way. Because thats what winners do. > > You can't improve what you don't measure. > > Quality is never an accident; it is always the result of high intention, > > sincere effort, intelligent direction and skillful execution; it > > represents > > the wise choice of many alternatives. > > "Live as if you were to die tomorrow. Learn as if you were to live > > forever." > > > > > > > > ------------------------------------------------------------- > > To unsubscribe from this list, manage your profile @ > > http://www.acfug.org?fa=login.edituserform<http://www.acfug.org/?fa=login.edituserform> > > > > For more info, see http://www.acfug.org/mailinglists > > Archive @ http://www.mail-archive.com/discussion%40acfug.org/ > > List hosted by http://www.fusionlink.com > > ------------------------------------------------------------- > > > > > > Dean H. Saxe > [EMAIL PROTECTED] > "What difference does it make to the dead, the orphans, and the homeless, > whether the mad destruction is wrought under the name of totalitarianism or > the holy name of liberty and democracy? " -Gandhi > > > > ------------------------------------------------------------- > To unsubscribe from this list, manage your profile @ > http://www.acfug.org?fa=login.edituserform<http://www.acfug.org/?fa=login.edituserform> > > For more info, see http://www.acfug.org/mailinglists > Archive @ http://www.mail-archive.com/discussion%40acfug.org/ > List hosted by http://www.fusionlink.com > ------------------------------------------------------------- > > > > -- <Ajas Mohammed /> http://ajashadi.blogspot.com No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. "Live as if you were to die tomorrow. Learn as if you were to live forever." ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
