Re: Serving images from databases
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17055
interpreted = N
texte = >WebDNA was never designed to work with binary data -- its purpose is to>generate HTML text. Regardless of whether the NULL comes from a PageMill>file or a GIF file, WebDNA stops processing at that point. Without a total>rewrite+slowdown of the parser, that will remain unchanged.Hmm... a [INCLUDE RAW] as you mention below should work with no need forWebCat to parse that data - shouldn't it?>HOWEVER: Olin posted an excellent technique for allowing WebCatalog to>intercept picture requests and do useful things with them. Search>WebDNA-Talk at http://search.smithmicro.com for creative in the>subject line. The oldest message by Olin (at the bottom) contains a handy>tip regarding this subject.We have been using a simililar technique with both WebCat and othersoftware a pretty long time, and it works pretty well. But, that's just ahalf way solution - it reveals the true location of the image.>We have also noted the request for a special includeRAW tag that does no>NULL cleanup. Whether or not your browser can deal with such data will be>up to you -- HTML specs typically do not address embedded NULLS any>differently than WebCatalog does.If you write your own custom headers (as I mentioned in my originalposting) that should not be a problem. Content-type: image/gif whould dothe trick for gifs and so on.I really look forward to WebCat 2.1.2 with the new tag ;-) ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se
Associated Messages, from the most recent to the oldest:
>WebDNA was never designed to work with binary data -- its purpose is to>generate HTML text. Regardless of whether the NULL comes from a PageMill>file or a GIF file, WebDNA stops processing at that point. Without a total>rewrite+slowdown of the parser, that will remain unchanged.Hmm... a [INCLUDE RAW] as you mention below should work with no need forWebCat to parse that data - shouldn't it?>HOWEVER: Olin posted an excellent technique for allowing WebCatalog to>intercept picture requests and do useful things with them. Search>WebDNA-Talk at http://search.smithmicro.com for creative in the>subject line. The oldest message by Olin (at the bottom) contains a handy>tip regarding this subject.We have been using a simililar technique with both WebCat and othersoftware a pretty long time, and it works pretty well. But, that's just ahalf way solution - it reveals the true location of the image.>We have also noted the request for a special includeRAW tag that does no>NULL cleanup. Whether or not your browser can deal with such data will be>up to you -- HTML specs typically do not address embedded NULLS any>differently than WebCatalog does.If you write your own custom headers (as I mentioned in my originalposting) that should not be a problem. Content-type: image/gif whould dothe trick for gifs and so on.I really look forward to WebCat 2.1.2 with the new tag ;-) ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se
Christer Olsson
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:
[WebDNA] PayPal Instant Payment Notification Guide (2009)
Banner Ad example (Typhoon) and WebCatalog (1997)
[isfile] ? (1997)
WebCat editing, SiteGuard & SiteEdit (1997)
range vs greater than/less than (2003)
Credit Card Checksum (1997)
WCS Newbie question (1997)
OT: Javascript Form Validation (2002)
Almost a there but..bye bye NetCloak (1997)
setcookie getcookie on the same page (2003)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
[fileinfo . . .] (2000)
[encrypt] blues.... (2000)
Upgrade on MacOSX 3.05 to 3.08 (2000)
Target wit redirect (1998)
PCS Emailer's role ? (1997)
Fwd: virtual domain and [listfile] paths and aliases (1998)
WebCatalog can't find database (1997)
$append (1998)
SQL in SEARCH breaks FOUNDITEMS (1999)