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 Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
>>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 Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://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:
multiple product databases (1997)
Where's Cart Created ? (1997)
Permissions (2000)
WebSTAR 2.1 freezes my Mac (1997)
Any way to retrieve information from clipboard? (1998)
Web Commerce thoughts and needs.. (1996)
Applescript, WebDNA, and PDF (1997)
WC --> printer (1998)
restart needed???? (1997)
shipcost (1997)
back button loses cart (2000)
[shownext] and descending order (1997)
tcpconnect/tcpsend frustrations (2002)
MacAuthorize Email Problem (1998)
NT or Mac (1998)
what's wrong with this picture (2006)
Multi vendor shop (2000)
Practice runs ? (1997)
Include a big block of text (1997)
Authorizenet answers and more questions (2002)