On Jan 15, 2007, at 5:56 PM, Arnaud Nicolet wrote:
What about if I create an application which writes files with the
same pattern?
I mean: is reading bytes of a file a reliable way to determine it's
contents?
it's a best guess
you could read enough of the jpeg file to get the header and actual
size and assume that is correct but unless you read the whole file
and parse it anyone could craft a file that tells you it's a jpeg
when it's not
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>