Re: image dimensions on mapped drive file

2010-08-16 Thread Dave Watts

> All CF services are starting under my user account.  The mapped drive is on
> a windows 7 box, and I can't figure out how to put a xp user on it.  The
> share allows everyone read write.

I don't think this will work unless both machines are within the same domain.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsit

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336309
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: image dimensions on mapped drive file

2010-08-16 Thread Dave Watts

>  directory="z:\wwwroot\domain_com\includes\www_domain_com\dev\images\products\"
> action="list" name="dir_list">
>
> produces empty list
>
>  directory="\\awesome-pc\inetpub\wwwroot\domain_com\includes\www_domain_com\dev\images\products\"
> action="list" name="dir_list">

There are two reasons why mapped drives don't work. The first is
permissions, and I think you've already got that problem sorted, since
the UNC path works. The second is that the mapping has to belong to
the domain user in question, and has to be persistent. Since SYSTEM
isn't a user, I suspect you can't really give it a drive mapping. So,
you'd have to run CF as another domain user who has permissions and a
persistent drive mapping.

All that said, I'd recommend you just use UNC paths - there's no
confusion about where they point, and they don't need any setup.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336308
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: image dimensions on mapped drive file

2010-08-16 Thread Matthew Smith

All CF services are starting under my user account.  The mapped drive is on
a windows 7 box, and I can't figure out how to put a xp user on it.  The
share allows everyone read write.

On Mon, Aug 16, 2010 at 2:50 PM, Rick Root  wrote:

>
> Drive mappings only exist as part of a login session.  The Z: drive
> does not exist if nobody is logged into the computer.
>
> I think what you need to do, if you want to use drive mappings, is
> have coldfusion log into some account (other than "system"), and set
> up the drive mapping for that user account.
>
> Rick
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336307
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: image dimensions on mapped drive file

2010-08-16 Thread Rick Root

Drive mappings only exist as part of a login session.  The Z: drive
does not exist if nobody is logged into the computer.

I think what you need to do, if you want to use drive mappings, is
have coldfusion log into some account (other than "system"), and set
up the drive mapping for that user account.

Rick

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336306
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: image dimensions on mapped drive file

2010-08-16 Thread Michael Grant

I'm thinking you need to add the user account that CF runs under to the
permissions of the mapped drive.


On Mon, Aug 16, 2010 at 3:12 PM, Matthew Smith wrote:

>
> 
> directory="z:\wwwroot\domain_com\includes\www_domain_com\dev\images\products\"
> action="list" name="dir_list">
>
> produces empty list
>
> 
> directory="\\awesome-pc\inetpub\wwwroot\domain_com\includes\www_domain_com\dev\images\products\"
> action="list" name="dir_list">
>
> lists the files as it should.
>
> Not sure why a mapped drive does not work while the unc does.
>
> On Mon, Aug 16, 2010 at 12:55 PM, Andy Matthews  >wrote:
>
> >
> > Does ColdFusion have access to that drive? Can you generate a list of
> > files,
> > and their permissions with cfdirectory for example?
> >
> >
> > andy
> >
> > -----Original Message-
> > From: Matthew Smith [mailto:chedders...@gmail.com]
> > Sent: Monday, August 16, 2010 12:31 PM
> > To: cf-talk
> > Subject: image dimensions on mapped drive file
> >
> >
> > I need to get the dimensions of some images.  In my local environment, my
> > wwwroot is located on a mapped drive at:
> > \\awesome-pc\inetpub\wwwroot\
> >
> > It is also mapped on the server as:
> > z:\wwwroot\
> >
> > I found a couple of methods to get image dimensions, and am using the one
> > from this thread:
> > http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:33091
> >
> > <http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:33091>
> I
> > am
> > getting:
> > Can't read input file!
> >
> > I can go to the image on the server by putting in the path directly, so
> it
> > is accessable, but for some reason cf can't see it.  I know there is an
> > issue with null credentials on network assets, so everything is starting
> > under a user account.
> >
> > How can I get this to work?
> >
> > Passing:
> >
> >
> \\awesome-pc\inetpub\wwwroot\domain_com\includes\www_domain_com\dev\images\p
> > roducts\image.jpg
> > or
> >
> z:\wwwroot\domain_com\includes\www_domain_com\dev\images\products\image.jpg
> >
> > 
> >
> >  
> >
> >   > createObject("java","java.io.File").init(ARGUMENTS.FileLoc)>
> >
> >  
> >   > createObject("java","javax.imageio.ImageIO").read(jFileIn)>
> >
> >  
> >  
> >
> >  
> >
> > 
> >
> > --
> > Regards,
> > Matthew Smith
> >
> >
> >
> >
> >
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336305
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: image dimensions on mapped drive file

2010-08-16 Thread Matthew Smith



produces empty list



lists the files as it should.

Not sure why a mapped drive does not work while the unc does.

On Mon, Aug 16, 2010 at 12:55 PM, Andy Matthews wrote:

>
> Does ColdFusion have access to that drive? Can you generate a list of
> files,
> and their permissions with cfdirectory for example?
>
>
> andy
>
> -Original Message-
> From: Matthew Smith [mailto:chedders...@gmail.com]
> Sent: Monday, August 16, 2010 12:31 PM
> To: cf-talk
> Subject: image dimensions on mapped drive file
>
>
> I need to get the dimensions of some images.  In my local environment, my
> wwwroot is located on a mapped drive at:
> \\awesome-pc\inetpub\wwwroot\
>
> It is also mapped on the server as:
> z:\wwwroot\
>
> I found a couple of methods to get image dimensions, and am using the one
> from this thread:
> http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:33091
>
> <http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:33091> I
> am
> getting:
> Can't read input file!
>
> I can go to the image on the server by putting in the path directly, so it
> is accessable, but for some reason cf can't see it.  I know there is an
> issue with null credentials on network assets, so everything is starting
> under a user account.
>
> How can I get this to work?
>
> Passing:
>
> \\awesome-pc\inetpub\wwwroot\domain_com\includes\www_domain_com\dev\images\p
> roducts\image.jpg
> or
> z:\wwwroot\domain_com\includes\www_domain_com\dev\images\products\image.jpg
>
> 
>
>  
>
>   createObject("java","java.io.File").init(ARGUMENTS.FileLoc)>
>
>  
>   createObject("java","javax.imageio.ImageIO").read(jFileIn)>
>
>  
>  
>
>  
>
> 
>
> --
> Regards,
> Matthew Smith
>
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336304
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: image dimensions on mapped drive file

2010-08-16 Thread Andy Matthews

Does ColdFusion have access to that drive? Can you generate a list of files,
and their permissions with cfdirectory for example?


andy 

-Original Message-
From: Matthew Smith [mailto:chedders...@gmail.com] 
Sent: Monday, August 16, 2010 12:31 PM
To: cf-talk
Subject: image dimensions on mapped drive file


I need to get the dimensions of some images.  In my local environment, my
wwwroot is located on a mapped drive at:
\\awesome-pc\inetpub\wwwroot\

It is also mapped on the server as:
z:\wwwroot\

I found a couple of methods to get image dimensions, and am using the one
from this thread:
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:33091

<http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:33091> I am
getting:
Can't read input file!

I can go to the image on the server by putting in the path directly, so it
is accessable, but for some reason cf can't see it.  I know there is an
issue with null credentials on network assets, so everything is starting
under a user account.

How can I get this to work?

Passing:
\\awesome-pc\inetpub\wwwroot\domain_com\includes\www_domain_com\dev\images\p
roducts\image.jpg
or
z:\wwwroot\domain_com\includes\www_domain_com\dev\images\products\image.jpg



  

  

  
  

  
  

  



--
Regards,
Matthew Smith




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336302
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


image dimensions on mapped drive file

2010-08-16 Thread Matthew Smith

I need to get the dimensions of some images.  In my local environment, my
wwwroot is located on a mapped drive at:
\\awesome-pc\inetpub\wwwroot\

It is also mapped on the server as:
z:\wwwroot\

I found a couple of methods to get image dimensions, and am using the one
from this thread:
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:33091

 I am
getting:
Can't read input file!

I can go to the image on the server by putting in the path directly, so it
is accessable, but for some reason cf can't see it.  I know there is an
issue with null credentials on network assets, so everything is starting
under a user account.

How can I get this to work?

Passing:
\\awesome-pc\inetpub\wwwroot\domain_com\includes\www_domain_com\dev\images\products\image.jpg
or
z:\wwwroot\domain_com\includes\www_domain_com\dev\images\products\image.jpg



  

  

  
  

  
  

  



-- 
Regards,
Matthew Smith


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336300
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm