I guess I don't understand exactly what you're getting at. I wasn't
suggesting this was something other than an issue with the way IIS handles
file locking and caching.

The folks who designed WebCam32 built a work around into the WebCam32
software for the file locking issue. It reduces the frequency of the problem
to approximately 1/1000.

Another solution may be to have the image source call a ColdFusion template
that reads and returns the image using the <CFCONTENT> tag. You should be
able to establish an exclusive lock by placing the <CFLOCK> around this.
This may produce access denied errors from WebCam32.

Benjamin S. Rogers
Web Developer, c4.net
voice: (508) 240-0051
fax: (508) 240-0057

-----Original Message-----
From: David E. Crawford [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 01, 2000 8:40 AM
To: [EMAIL PROTECTED]
Subject: RE: IIS "Locking" Files


WebCAM isn't the problem.  It is IIS.  WebCAM is uploading a temporary file
and then renaming to the "default" name.  The problem is that the CF page
that I am using to display the images is looking for the "default" name.
The browser access via CF is what is causing the lock to be placed on the
system.  The webcams in question will be in a display booth at a trade show,
and I will not have the ability to take advantage of the "push" feature.
FTP is the way I need to go.

Dave

-----Original Message-----
From: Benjamin S. Rogers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 31, 2000 18:37
To: [EMAIL PROTECTED]
Subject: RE: IIS "Locking" Files


What the folks who designed the WebCam32 software intended was for the app
to upload the file with a temporary name and then rename the file. This
avoids the locking issue in most cases.
This works, however, I'd recommend their JavaPushCam applet. This can be
customized to suit your needs fairly well and degrades gracefully on slower
connections. It also precludes the necessity of having to reload the entire
page.
Benjamin S. Rogers
Web Developer, c4.net
voice: (508) 240-0051
fax: (508) 240-0057
-----Original Message-----
From: David E. Crawford [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 31, 2000 1:23 PM
To: Jim McAtee; [EMAIL PROTECTED]
Subject: RE: IIS "Locking" Files


This is a multi-part message in MIME format.
------=_NextPart_000_0052_01C01370.1F8B9480
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Re: IIS "Locking" FilesWell, I would, except that I am using the FTP client
builtin to WebCAM32 and it is not as flexible.  I don't want to write a
complete application around this.
DC
  -----Original Message-----
  From: Jim McAtee [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 31, 2000 16:43
  To: [EMAIL PROTECTED]
  Cc: David E. Crawford
  Subject: Re: IIS "Locking" Files


  Dave,
  You might also try a different approach to naming the uploaded files.
  If possible, have your webcam upload the images with a unique filename.
  For example, instead of uploading as "thispic.jpg", append a timestamp,
  as in "thispic1405.jpg".  Your CF template that displays the image could
  do a CFDIRECTORY using a filter of "thispic*.jpg", sort by date
  (descending), and then select the latest image.  Clean out the directory
  as needed.  Definitely a bit more work, but you wouldn't have to disable
  anything in IIS.
  Jim



  -----Original Message-----
  From: David E. Crawford <[EMAIL PROTECTED]>
  To: CF-Talk <[EMAIL PROTECTED]>
  Date: Thursday, August 31, 2000 6:42 AM
  Subject: IIS "Locking" Files



  >A while back there was some discussion of a registry hack which would
  allow
  >the disabling of the "lock" that IIS places on files during "read"
  >operations.  I understand that it may have a bearing on performance,
  >however, I am in a situation where I am ftp'ng webcam images into a
  >directory, which are then "called" via CFM template.  Unfortunately the
  >browser access to the files appears to be placing an exclusive lock on
  the
  >file, which means the FTP process is failing.
  >
  >Does anyone recall the technique used to defeat this "feature" of IIS?
  >
  >Dave
  >---------------------------
  >David E. Crawford
  >Director, Internet Development
  >Yale Security Group, Inc.
  >www.yalesecurity.com


------=_NextPart_000_0052_01C01370.1F8B9480
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: IIS "Locking" Files</TITLE>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D155282217-31082000>Well,=20
I would, except that I am using the FTP client builtin to WebCAM32 and =
it is not=20
as flexible.&nbsp; I don't want to write a complete application around=20
this.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D155282217-31082000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D155282217-31082000>DC</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D155282217-31082000></SPAN></FONT>&nbsp;</DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
  <DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Jim McAtee=20
  [mailto:[EMAIL PROTECTED]]<BR><B>Sent:</B> Thursday, August 31, =
2000=20
  16:43<BR><B>To:</B> [EMAIL PROTECTED]<BR><B>Cc:</B> David E.=20
  Crawford<BR><B>Subject:</B> Re: IIS "Locking" =
Files<BR><BR></DIV></FONT>
  <P><FONT size=3D2>Dave,</FONT> </P>
  <P><FONT size=3D2>You might also try a different approach to naming =
the uploaded=20
  files.</FONT> <BR><FONT size=3D2>If possible, have your webcam upload =
the images=20
  with a unique filename.</FONT> <BR><FONT size=3D2>For example, instead =
of=20
  uploading as "thispic.jpg", append a timestamp,</FONT> <BR><FONT =
size=3D2>as in=20
  "thispic1405.jpg".&nbsp; Your CF template that displays the image =
could</FONT>=20
  <BR><FONT size=3D2>do a CFDIRECTORY using a filter of "thispic*.jpg", =
sort by=20
  date</FONT> <BR><FONT size=3D2>(descending), and then select the =
latest=20
  image.&nbsp; Clean out the directory</FONT> <BR><FONT size=3D2>as =
needed.&nbsp;=20
  Definitely a bit more work, but you wouldn't have to disable</FONT> =
<BR><FONT=20
  size=3D2>anything in IIS.</FONT> </P>
  <P><FONT size=3D2>Jim</FONT> </P><BR>
  <P><FONT size=3D2>-----Original Message-----</FONT> <BR><FONT =
size=3D2>From: David=20
  E. Crawford &lt;[EMAIL PROTECTED]&gt;</FONT> <BR><FONT =
size=3D2>To:=20
  CF-Talk &lt;[EMAIL PROTECTED]&gt;</FONT> <BR><FONT =
size=3D2>Date:=20
  Thursday, August 31, 2000 6:42 AM</FONT> <BR><FONT size=3D2>Subject: =
IIS=20
  "Locking" Files</FONT> </P><BR>
  <P><FONT size=3D2>&gt;A while back there was some discussion of a =
registry hack=20
  which would</FONT> <BR><FONT size=3D2>allow</FONT> <BR><FONT =
size=3D2>&gt;the=20
  disabling of the "lock" that IIS places on files during "read"</FONT>=20
  <BR><FONT size=3D2>&gt;operations.&nbsp; I understand that it may have =
a bearing=20
  on performance,</FONT> <BR><FONT size=3D2>&gt;however, I am in a =
situation where=20
  I am ftp'ng webcam images into a</FONT> <BR><FONT =
size=3D2>&gt;directory, which=20
  are then "called" via CFM template.&nbsp; Unfortunately the</FONT> =
<BR><FONT=20
  size=3D2>&gt;browser access to the files appears to be placing an =
exclusive lock=20
  on</FONT> <BR><FONT size=3D2>the</FONT> <BR><FONT size=3D2>&gt;file, =
which means=20
  the FTP process is failing.</FONT> <BR><FONT size=3D2>&gt;</FONT> =
<BR><FONT=20
  size=3D2>&gt;Does anyone recall the technique used to defeat this =
"feature" of=20
  IIS?</FONT> <BR><FONT size=3D2>&gt;</FONT> <BR><FONT =
size=3D2>&gt;Dave</FONT>=20
  <BR><FONT size=3D2>&gt;---------------------------</FONT> <BR><FONT=20
  size=3D2>&gt;David E. Crawford</FONT> <BR><FONT size=3D2>&gt;Director, =
Internet=20
  Development</FONT> <BR><FONT size=3D2>&gt;Yale Security Group, =
Inc.</FONT>=20
  <BR><FONT size=3D2>&gt;www.yalesecurity.com</FONT> =
</P></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0052_01C01370.1F8B9480--
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to