Re: how to determine the actual file format of an image file?
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 44639
interpreted = N
texte = on 10/30/02 4:33 PM, Rob Marquardt at rob@toastdesign.com so noted...> One possibility to get around that limitation would be to encrypt the file> as base64 and check for the appropriate encoded text.> > [showif [getchars start=1&end=4][encrypt> method=base64&file=mysteryFile.zzz][/encrypt][/getchars]=R0lG]> We have a GIF!> [/showif]> > [showif [getchars start=1&end=17][encrypt> method=base64&file=mysteryFile.zzz][/encrypt][/getchars]^SkZJRg]> We have a JPEG!> [/showif]> > R0lG and SkZJRg being the base64 encodings of GIF and JFIF> respectively.> > Not extensively tested, but perhaps a place to start.As a follow-up, this correctly identified any image file I threw at it.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
on 10/30/02 4:33 PM, Rob Marquardt at rob@toastdesign.com so noted...> One possibility to get around that limitation would be to encrypt the file> as base64 and check for the appropriate encoded text.> > [showif [getchars start=1&end=4][encrypt> method=base64&file=mysteryFile.zzz][/encrypt][/getchars]=R0lG]> We have a GIF!> [/showif]> > [showif [getchars start=1&end=17][encrypt> method=base64&file=mysteryFile.zzz][/encrypt][/getchars]^SkZJRg]> We have a JPEG!> [/showif]> > R0lG and SkZJRg being the base64 encodings of GIF and JFIF> respectively.> > Not extensively tested, but perhaps a place to start.As a follow-up, this correctly identified any image file I threw at it.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Rob Marquardt
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:
[convertChars] and in a textarea on a form (1998)
[WebDNA] WebDNA databases not showing? (2013)
WCS Newbie question (1997)
Extended [ConvertChars] (1997)
weirdness in the error log (1998)
shipcost (1997)
Bug? (1997)
textarea to page display (1998)
Append problem w/" (1999)
Nice package (1998)
Great product and great job ! (1997)
Subtotal Not Calculated on Invoice.html (1998)
extending webcatalog (1997)
NT challenges default admin/admin password (2000)
Dates - Search and Sorting (1999)
Quit revisited (1997)
[shell] stopped ?? (2003)
Newbie problem blah blah blah (1997)
japanese characters (1997)
[sendmail] questions... (1997)