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 Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.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:

    
  1. Re: how to determine the actual file format of an image file? (Rob Marquardt 2002)
  2. Re: how to determine the actual file format of an image file?- done (dale's stuff 2002)
  3. Re: how to determine the actual file format of an image file? (dale's stuff 2002)
  4. Re: how to determine the actual file format of an image file? (Jason Tyler 2002)
  5. Re: how to determine the actual file format of an image file? (dale's stuff 2002)
  6. Re: how to determine the actual file format of an image file? (Rob Marquardt 2002)
  7. Re: how to determine the actual file format of an image file? (Glenn Busbin 2002)
  8. Re: how to determine the actual file format of an image file? (Frank Nordberg 2002)
  9. Re: how to determine the actual file format of an image file? (Brian Boegershausen 2002)
  10. Re: how to determine the actual file format of an image file? (Alain Russell 2002)
  11. Re: how to determine the actual file format of an image file? (dale's stuff 2002)
  12. Re: how to determine the actual file format of an image file? (Rob Marquardt 2002)
  13. how to determine the actual file format of an image file? (dale's stuff 2002)
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 Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.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)