Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: serving a dynamically-generated image file


Message #1 by "Tac/Smokescreen Action Network" <tac@s...> on Tue, 19 Dec 2000 17:34:39 -0500
I have a routine that does image conversion, and the basic logic is



if Not FileExists("mythumbnail.gif")

    Convert(MyFile, "mythumbnail.gif")



Read("mythumbnail.gif")

SendItToBrowser



I'm converting an application from another language to ASP, and am not sure

of the easiest ways to (1) check for file existence and (2) serve up a file

with the correct content header.  I have Wrox 3.0 ASP Professional, can

someone point me to a page number that would help with this?  Or, if you

know the answer to either of these ...



Thanks!



Tac







---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #2 by Peter Zahos <peter_zahos@s...> on Wed, 20 Dec 2000 11:03:58 +0800
Check out the "FileSystem" object.  Between chapter 3 and 6 from memory. 



-----Original Message-----

From: Tac/Smokescreen Action Network [mailto:tac@s...]

Sent: Wednesday, 20 December 2000 6:35 AM

To: ASP Web HowTo

Subject: [asp_web_howto] serving a dynamically-generated image file





I have a routine that does image conversion, and the basic logic is



if Not FileExists("mythumbnail.gif")

    Convert(MyFile, "mythumbnail.gif")



Read("mythumbnail.gif")

SendItToBrowser



I'm converting an application from another language to ASP, and am not sure

of the easiest ways to (1) check for file existence and (2) serve up a file

with the correct content header.  I have Wrox 3.0 ASP Professional, can

someone point me to a page number that would help with this?  Or, if you

know the answer to either of these ...



Thanks!



Tac







---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com


  Return to Index