I'm not entirely sure if this will help, but you might need to
stop/start the site in IIS for the directory to be available.

On Mon, May 12, 2008 at 5:12 PM, Ajas Mohammed <[EMAIL PROTECTED]> wrote:
> ok so as Shawn suggested,
>
> we have a virtual directory called VDocuments which refers to
> \\servername\nameofshare on a different machine and
>
> under this nameofshare we have folder CF_Chart_Share which contains the
> images, so technically website root level its /VDocuments/CF_Chart_Share.
>
> now if my url is https://www.abc.com/ then I should be able to access images
> like this https://www.abc.com/VDocuments/CF_Chart_Share/test.jpg
> but I am not able to do this. Browser says page cannot be displayed. Any
> suggestions on this.
>
> Also in my earlier created code, i made changes to accomodate the virtual
> directory like this.
>
>
> this page will show images thats all ....<br>
>
> <cfset theFile = "/vDocuments/CF_Chart_Share/test.jpg">
>
> <cfif fileExists(theFile)>
> File exists
> <cfelse> File does not exist
> </cfif>
>
> <br><cfoutput>#theFile#</cfoutput>
>
> <br><img src="/vDocuments/CF_Chart_Share/test.jpg">
>
>
> <br>
> this will work great...
> <br><br>end of testing
> I get file does not exist from the cfif clause and also the image doesnt get
> displayed.
>
> I could do the methods which worked before i.e. cfcontent in seperate file
> and then use the name of that file in img tag but problem is that the images
> are created for reports and have dynamic names so i cant keep on seperate
> file for every cfcontent/report.
>
> Makes sense?
>
> what could be wrong here in code? why the virtual directory is not working?
> I tried removing forward slash before virtual directory VDocuments and it
> didnt work.
>
> Thanks in advance.
>
>
>
>
>
> On 5/12/08, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > Return Receipt
> >
> >   Your       Re: [ACFUG Discuss] showing image from network share..how
> >   document:  to?
> >
> >   was        [EMAIL PROTECTED]
> >   received
> >   by:
> >
> >   at:        05/12/2008 12:28:01 PM
> >
> >
> >
> >
> >
> >
> >
> > -------------------------------------------------------------
> > 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
> > -------------------------------------------------------------
> >
> >
> >
> >
>
>
>
> --
> <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 FusionLink
> -------------------------------------------------------------



-- 
Darin Kohles
RIA Application Developer


-------------------------------------------------------------
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
-------------------------------------------------------------



Reply via email to