If you don't make any changes, IIS will attempt to retrieve images from the share using it's default credentials ("Local System") and unless Everyone has read access (or better), that won't work. What has worked for me as far as troubleshooting in the past, is to try to browse that image straight from within IIS manager on that webserver. If there is a permission problem, it will show up right there and you have take CF and the browser out of the loop.
/m
 
 
: 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="">

: <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 cant improve what you dont 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
: -------------------------------------------------------------




Mischa Uppelschoten
The Banker's Exchange, LLC.
4200 Highlands Parkway SE
Suite A
Smyrna, GA 30082-5198

Phone:    (404) 605-0100 ext. 10
Fax:    (404) 355-7930
Web:    www.BankersX.com
Follow this link for Instant Web Chat:
http://www.bankersx.com/Contact/chat.cfm?Queue=MUPPELSCHOTEN
----------------------- Original Message -----------------------
  
From: "Ajas Mohammed" <[EMAIL PROTECTED]>
Date: Mon, 12 May 2008 17:12:14 -0400
Subject: Re: [ACFUG Discuss] showing image from network share..how to?
  
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="">


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