Re: re[4]: [ACFUG Discuss] showing image from network share..how to?

2008-05-14 Thread Howard Fore
Huh. If you've got the IIS virtual directory implemented, why use cfcontent?
The virtual directory should make all the images accessible from the client
web browser.

Additionally, the code as you've shown is going to hit the CF server twice,
one to get img.cfm and then a second time to get img2.cfm. If you give the
URL that goes to the image instead of the page that fetches the image

Additionally, using the web accessible URL in the img src attribute will
reduce your request-response pairs by 1/3. As implemented here, you've got 3
request-response sequences:
request 1 - get img.cfm from IIS/CF
response 1 - return HTML for img.cfm to browser
request 2 - get img2.cfm from IIS/CF
request 3 - get testimage.jpg from \\servername\nameofshare
response 3 - return image to CF server
response 2 - return image to browser

If you use the web-accessible URL you get
request 1 - get img.cfm from IIS/CF
response 1 - return HTML for img.cfm to browser
request 2 - get testimage.jpg from IIS virtual directory for
\\servername\nameofshare
response 2 - return image to browser

Just a thought...

On Tue, May 13, 2008 at 11:28 PM, Ajas Mohammed <[EMAIL PROTECTED]> wrote:

> img2.cfm has this code below, thats all...
>
> 
>
>
> On Tue, May 13, 2008 at 9:44 PM, Howard Fore <[EMAIL PROTECTED]> wrote:
>
>> On Tue, May 13, 2008 at 4:15 PM, Ajas Mohammed <[EMAIL PROTECTED]>
>> wrote:
>>
>>> 1. instead of cfincluding the img.cfm, do a
>>> 
>>> 
>>> 
>>>
>>
>> What does img2.cfm do? Does it return/output the  web  accessible path to
>> the image file?
>>
>


-- 
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 http://www.fusionlink.com
-



Re: re[4]: [ACFUG Discuss] showing image from network share..how to?

2008-05-13 Thread Ajas Mohammed
Hi,

img2.cfm has this code below, thats all...



Thanks for Gif vs jpg catch... I didnt notice that. I have type set as gif
and image being shown is jpeg in production and it works in both firefox and
IE. I will change it now that I know.

Thanks,

Ajas.


On Tue, May 13, 2008 at 9:44 PM, Howard Fore <[EMAIL PROTECTED]> wrote:

> On Tue, May 13, 2008 at 4:15 PM, Ajas Mohammed <[EMAIL PROTECTED]> wrote:
>
> > 1. instead of cfincluding the img.cfm, do a
> > 
> > 
> > 
> >
>
> What does img2.cfm do? Does it return/output the  web  accessible path to
> the image file?
>
> 4. Use CFContent  
> >
>
> In your production code are you matching the type attribute to the actual
> file type? In your example here you are telling the browser that the file it
> is about to receive is a GIF but then you actually give it a JPEG. As the
> configuration of what this affects is in the browser you can't actually know
> if it will matter or not but I think it would be better to err on the side
> of caution.
>
>
> --
> 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 
> -
>



-- 

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 http://www.fusionlink.com
-



Re: re[4]: [ACFUG Discuss] showing image from network share..how to?

2008-05-13 Thread Howard Fore
On Tue, May 13, 2008 at 4:15 PM, Ajas Mohammed <[EMAIL PROTECTED]> wrote:

> 1. instead of cfincluding the img.cfm, do a
> 
> 
> 
>

What does img2.cfm do? Does it return/output the  web  accessible path to
the image file?

4. Use CFContent  
>

In your production code are you matching the type attribute to the actual
file type? In your example here you are telling the browser that the file it
is about to receive is a GIF but then you actually give it a JPEG. As the
configuration of what this affects is in the browser you can't actually know
if it will matter or not but I think it would be better to err on the side
of caution.


-- 
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 http://www.fusionlink.com
-



Re: re[4]: [ACFUG Discuss] showing image from network share..how to?

2008-05-13 Thread Ajas Mohammed
Hi,

Sorry for the delay in my response. I was busy fixing things.

Mischa --> thanks for the browse suggestion in IIS. I kind of used that to
solve this problem. The admin had just entered username for the virtual
directory in connect as dialog box. So I entered the password as well and it
works fine now.

Finally, about my original solution not working for you Mischa, I am using
the same FF version 2.0.0.14 and it worked. The solution which worked for me
is the one where I use  code. Let me know if you still
have problems in FF.

Douglas thanks for the suggestion. I didnt check it but a very good point to
remember about IIS should run under a domain acccount.

*Acccepted Solutions & Important Points to remember:*

1. instead of cfincluding the img.cfm, do a





2. Use browse feature in IIS to see if you can view the file/image to narrow
out CF/Browser issue.

3. IIS should run under a domain acccount

4. Use CFContent  

Thank you everyone.

Ajas.



On 5/12/08, Douglas Knudsen <[EMAIL PROTECTED]> wrote:
>
> yeah, to point IIS to a share, IIS needs to run under a domain account
> that has access to the share.
>
> DK
>
> On Mon, May 12, 2008 at 6:02 PM, Mischa Uppelschoten ext 10 <
> [EMAIL PROTECTED]> wrote:
>
> >
> > :  browse. The browser window opened and i got page cannot be displayed
> > screen
> > :
> > : There is a problem with the page you are looking for, and it cannot be
> > :  displayed.
> > :
> > : Please try the following: * Contact the Web site administrator to
> > inform them
> > :  that this error has occured for this URL address.  HTTP Error 500 -
> > Internal
> > :  server error.
> > : Internet Information Services (IIS)
> > : what could be wrong
> >
> > :
> >
> > Either:
> > - allow Everyone to browse that share
> > - Run IIS under a domain account
> >
> > or more exotic solutions like replicating your files to the webserver,
> > setting up a webserver on the box that hosts the image files, using CFFILE
> > to have the CF server read it etc.
> >
> > BTW, I duplicated your starting situation (use IMG tag to pull in
> > image file from share) and interestingly enough, that does not work with
> > Firefox (2.0.0.14), but it does work with IE 6 (SP2). FF simply does not
> > show the image, but it is available allright through Tools -> Page Info ->
> > Media...
> > - To
> > unsubscribe from this list, manage your profile @
> > http://www.acfug.org?fa=login.edituserformFor
> >  more info, see
> > http://www.acfug.org/mailinglists Archive @
> > http://www.mail-archive.com/discussion%40acfug.org/ List hosted by
> > http://www.fusionlink.com-
>
>
>
>
> --
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
> -
> 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 
> -




-- 

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 http://www.fusionlink.com
-



Re: re[4]: [ACFUG Discuss] showing image from network share..how to?

2008-05-12 Thread Douglas Knudsen
yeah, to point IIS to a share, IIS needs to run under a domain account that
has access to the share.

DK

On Mon, May 12, 2008 at 6:02 PM, Mischa Uppelschoten ext 10 <
[EMAIL PROTECTED]> wrote:

>
> :  browse. The browser window opened and i got page cannot be displayed
> screen
> :
> : There is a problem with the page you are looking for, and it cannot be
> :  displayed.
> :
> : Please try the following: * Contact the Web site administrator to inform
> them
> :  that this error has occured for this URL address.  HTTP Error 500 -
> Internal
> :  server error.
> : Internet Information Services (IIS)
> : what could be wrong
> :
> Either:
> - allow Everyone to browse that share
> - Run IIS under a domain account
>
> or more exotic solutions like replicating your files to the webserver,
> setting up a webserver on the box that hosts the image files, using CFFILE
> to have the CF server read it etc.
>
> BTW, I duplicated your starting situation (use IMG tag to pull in
> image file from share) and interestingly enough, that does not work with
> Firefox (2.0.0.14), but it does work with IE 6 (SP2). FF simply does not
> show the image, but it is available allright through Tools -> Page Info ->
> Media...
> - 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-




-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?



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



re[4]: [ACFUG Discuss] showing image from network share..how to?

2008-05-12 Thread Mischa Uppelschoten ext 10



:  browse. The browser window
 opened and i got page cannot be displayed
 screen :   : There is a
 problem with the page you are looking for,
 and it cannot be:  displayed.  :
  : Please try the following: * Contact
 the Web site administrator to inform them:
  that this error has occured for this
 URL address.  HTTP Error 500 - Internal:
  server error.: Internet Information
 Services (IIS) : what could be wrong
 :   
Either:
- allow Everyone to browse that share
- Run IIS under a domain account
 
or more exotic solutions like replicating
 your files to the webserver, setting up a
 webserver on the box that hosts the image
 files, using CFFILE to have the CF server
 read it etc.
 
BTW, I duplicated your starting situation
 (use IMG tag to pull in image file from
 share) and interestingly enough, that does
 not work with Firefox (2.0.0.14), but it
 does work with IE 6 (SP2). FF simply does
 not show the image, but it is available allright
 through Tools -> Page Info -> Media...



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