Why don't you just create a virtual directory in your webserver that points to 
the shared network location? Wouldn't that be easier? 


----- Original Message ----
From: Ajas Mohammed <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, May 12, 2008 11:06:55 AM
Subject: Re: [ACFUG Discuss] showing image from network share..how to?


so I tried cfcontent like this and it works but only problem is that only image 
is being shown and the text i have before the cfcontent tag doesnt show.
 
For examle, 
<cfset theFile = 
"\\servername\nameofshare\clientname\CF_Chart_Share\testimage.jpg"> 
<cfif fileExists(theFile)> 
exists
<cfelse> does not exist <br>
</cfif>
<cfcontent type="image/GIF" 
file="\\servername\nameofshare\clientname\CF_Chart_Share\testimage.jpg">

<img src="\\servername\nameofshare\clientname\CF_Chart_Share\testimage.jpg">
This doesnt show the result exists from the cfif statement but simply displays 
the image in the browser window. I tried to add the code <cfcontent 
type="image/GIF" 
file="\\servername\nameofshare\clientname\CF_Chart_Share\testimage.jpg"> in a 
seperate file img2.cfm and I included that in first page but still the same 
result. Only image gets displayed but not the text exists.
 
Any suggestions?



 
On 5/12/08, Howard Fore <[EMAIL PROTECTED]> wrote: 
The format of the address will change depending on it's use. If you drag an 
image from that server to your browser window you can then see in the URL 
window how it should be formatted for display in the browser. Obviously this is 
only going to display for those users with access to that same server and 
share. I don't think your example below has enough slashes up front. If you 
want people without server share access to see the image in the browser you 
need to put a web server in the mix, either an IIS virtual directory or an 
Apache directory/alias/location directive.


On Mon, May 12, 2008 at 10:48 AM, Ajas Mohammed <[EMAIL PROTECTED]> wrote:

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 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 works but it 
doesnt work in img tag.
 
Any suggestions?
 

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

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink 
------------------------------------------------------------- 


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