Re: Serving images from databases

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16943
interpreted = N
texte = >>I am experimenting with serving images directly from databases and I am >>facing some strange problems. >> >>If I [INCLUDE] a .gif file in a template WebCat coneverts all ASCII 0 to >>ASCII 32 and most but not all ASCII 13 to ASCII 10, and of course the >>result is a broken image. > >HTML doesn't work that way, and certainly WebCatalog does not store binary >image data in its fields. You should use , and if >speed is what you want, then using an image caching server like FireSite or >RushHour will help the most.Gif's have no resource fork, and they can be opened by any text editor simply by dragging and dropping them onto the appropriate icon. So, from my understanding, they are really just text files that are interpreted by another application in order to create a visual image.My question is this:Since they ane just text files anyways, why are they *not* include-able with WebCatalog just like any other text file? I'm not asking why they cannot be *displayed* as an image ... I'm asking why the characters that comprise the data in the data fork get changed when it's included by WebCatalog?Isn't [include file=some.gif&raw=T] supposed to include the data in it's raw form -- exactly as it occurs in that file? Or is there something else going on here that I'm mising ...Perhaps the data in the .gif file is not really what it appears? Maybe it's a different form of data that WebCatalog cannot include without changing the character representation of this data?I don't know the asnwer here, that's why I'm asking -- but if my ideas here are not the problem, then why doesn't the raw=T parameter make WebCatalog include the data as is?Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Serving images from databases (Grant Hulbert 1998)
  2. Re: Serving images from databases ( 1998)
  3. Re: Serving images from databases (Christer Olsson 1998)
  4. Re: Serving images from databases (Grant Hulbert 1998)
  5. Re: Serving images from databases (Thomas Wedderburn-Bisshop 1998)
  6. Re: Serving images from databases (Dave MacLeay 1998)
  7. Re: Serving images from databases (Christer Olsson 1998)
  8. Re: Serving images from databases (Kenneth Grome 1998)
  9. Re: Serving images from databases (Grant Hulbert 1998)
  10. Re: Serving images from databases (Thomas Wedderburn-Bisshop 1998)
  11. Re: Serving images from databases (Bob Minor 1998)
  12. Re: Serving images from databases (Kenneth Grome 1998)
  13. Re: Serving images from databases (Christer Olsson 1998)
  14. Re: Serving images from databases (PCS Technical Support 1998)
  15. Re: Serving images from databases (Christer Olsson 1998)
  16. Re: Serving images from databases (Kenneth Grome 1998)
  17. Re: Serving images from databases (Sven U. Grenander 1998)
  18. Re: Serving images from databases (PCS Technical Support 1998)
  19. Re: Serving images from databases (Christer Olsson 1998)
  20. Re: Serving images from databases (Kenneth Grome 1998)
  21. Serving images from databases (Christer Olsson 1998)
>>I am experimenting with serving images directly from databases and I am >>facing some strange problems. >> >>If I [include] a .gif file in a template WebCat coneverts all ASCII 0 to >>ASCII 32 and most but not all ASCII 13 to ASCII 10, and of course the >>result is a broken image. > >HTML doesn't work that way, and certainly WebCatalog does not store binary >image data in its fields. You should use , and if >speed is what you want, then using an image caching server like FireSite or >RushHour will help the most.Gif's have no resource fork, and they can be opened by any text editor simply by dragging and dropping them onto the appropriate icon. So, from my understanding, they are really just text files that are interpreted by another application in order to create a visual image.My question is this:Since they ane just text files anyways, why are they *not* include-able with WebCatalog just like any other text file? I'm not asking why they cannot be *displayed* as an image ... I'm asking why the characters that comprise the data in the data fork get changed when it's included by WebCatalog?Isn't [include file=some.gif&raw=T] supposed to include the data in it's raw form -- exactly as it occurs in that file? Or is there something else going on here that I'm mising ...Perhaps the data in the .gif file is not really what it appears? Maybe it's a different form of data that WebCatalog cannot include without changing the character representation of this data?I don't know the asnwer here, that's why I'm asking -- but if my ideas here are not the problem, then why doesn't the raw=T parameter make WebCatalog include the data as is?Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

using showpage and showcart commands (1996) PSC recommends what date format yr 2000??? (1997) Explorer 3.0/ Access Denied! (1997) Max Record length (1997) two unique banners on one page (1997) FW: The DNAForum Registration Confirmation (2002) math versus text (2005) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) New Command prefs ... (1997) Too many lines too add in one go (2003) Cookies (2001) WebCat2b13MacPlugIn - [include] (1997) URL for Discussion Archive (1997) [OT] CSS and SSI books (2004) Can webcat 3.0/4.0 handle 1,000,000 hits a day? (2000) RE: WebCatalog2 for NT Beta Request (1997) no global [username] or [password] displayed ... (1997) problems with 2 tags (1997) [DOS]/DOS query perhaps OT (2003) Banner Ads (2000)