Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
ionic77 #1
accessing images on a novell server from a win2000machine
hey everyone, i'm doing a proof of concept for a photo library project and i'm
a bit stuck. we have a novell server with over 20,000 images that we want to
build a GUI to access. the win2000 coldfusion box is going to be seperate as it
won't run on novell. i tried to access the novell server using the V:\photo
library path, but it says that this isn't a registered protocol. i also tried
accessing my C:\ drive, but that also said it wasn't a registered protocol. i'm
guessing this is a problem with using those types of addresses, what is the
proper way to access mapped/source machine drives? also, how do set the
permissions of the cf server to have admin rights for the photo library? is
that something i do in novell or on the win machine? my knowledge of networks
is really limited, your help is greatly appreciated!
ionic77 Guest
-
accessing SO at server side
Hi, I have problem in accessing sharedobject data on the server side. In SSAS, we read SO and write SO data with getProperty and setProperty(as... -
Accessing my new MSSQL server
Hi guys, I haven't had any experience with this sort of thing - I usually create databases through my website host using admin tools so that I can... -
Accessing images above root www directory with Flash
Instead of wasting a lot of time talking, I'll just show: http://artistorm.com/gallery/item.php?id=207 This is a website for selling art... -
copy file from Novell server
I have a ASP.NET web application which is required to copy file from windows server to Novell Netware server. I have used impersonation to connect... -
Accessing LDAP server with ASP
Hi I am trying to access a LDAP server with ASP with no sucess. I can do it with ColdFusion but not ASP. All the examples I have seen so far do not... -
dmuniz #2
Re: accessing images on a novell server from a win2000machine
You could create a mapping in coldfusion administrator. Logical Pat:
NovellImages Directory Path: V:\photo library path Then you could call it
from you colfusion code as <cfinclude template='NovellImages\pic1.jpg'> Hope
that helps
dmuniz Guest
-
ionic77 #3
Re: accessing images on a novell server from a win2000machine
thanks for the code! now i just have to wait until our sys admin upgrades the
cf box's access rights to the server. once these rights are updated, do you
know if will i be able to browse manually to the directory that i want mapped
in the cf server browsing java applet? i'll post up with the results as soon
as i can.
ionic77 Guest
-
dmuniz #4
Re: accessing images on a novell server from a win2000machine
After reviewing my previously posted code I see there is an error. Colfusion
Mappings will not work with <Img Src= , I believe they only work with
<cfinlcudes or <cfmodules. Sorry about that. Have you tried creating a virtual
directory in you web server that points to the novell drive ?
dmuniz Guest
-
ionic77 #5
Re: accessing images on a novell server from a win2000machine
we're using the included cf web server right now. is it possible to set up
virtual directories in this? if not, what's a good server to install on a
windows 2000 machine? this is going to be on a lan only.
ionic77 Guest
-
byron1021 #6
Re: accessing images on a novell server from a win2000machine
SInce this is your Lan only, you could src='\\myserver\theshare\pics\my.jpg' if
all users had read access to the Novell Share. Otherwise, you would need to
see if you can create a virtual directory on the internal web server in CF that
points to the Novell Share. I'm pretty sure you can do this. You may want to
look in MM's knowledge base and see if there is an article on how to.
byron1021 Guest
-
Dross.2 #7
Re: accessing images on a novell server from a win2000machine
1) Pretty sure you'll need to use UNC paths (e.g. \\Server\share ) 2) You'll
need to run CF as a real user that has rights to the share (plenty of technotes
out there on this) 3) My approach would be something like (call it
'getImage.cfm'). 4) You would call it like this: <img
src='getImage.cfm?imgName=someImage.jpg' />
<!--- getImage.cfm
retrieves image from novell store and streams to browser
--->
<cffile action="readbinary" file="\\server\share\#url.imgName#"
variable="imageContent"/>
<cfset ctx = getPageContext()/>
<cfset ctx.setFlushOutput(false)/>
<cfset response = ctx.getResponse().getResponse()/>
<cfset out = response.getOutputStream()/>
<cfset response.setContentType("image/jpeg")/>
<cfset response.setContentLength(arrayLen(imageContent))/>
<cfset out.write(imageContent)/>
<cfset out.flush()/>
<cfset out.close()/>
Dross.2 Guest
-
ionic77 #8
Re: accessing images on a novell server from a win2000machine
thank you for your solutions! i'm still waiting for our sys admin to create a
new novell account for the cf server. i will hopefully be able to post the
results up today. thanks again for your help :)
ionic77 Guest
-
ionic77 #9
Re: accessing images on a novell server from a win2000machine
thanks again for your help with this!
now we've got a working demo that we can use to get approval for this project.
thanks again, it means i have a job for the next two months ;)
ionic77 Guest



Reply With Quote

