Skip to content

Instantly share code, notes, and snippets.

@tdshipley tdshipley/isJPEGBody.go
Last active Aug 29, 2015

What would you like to do?
isJPEG function body
result = false
if (fileBlock[0] == 0xff && fileBlock[1] == 0xd8 && fileBlock[2] == 0xff && (fileBlock[3] == 0xe0 || fileBlock[3] == 0x0e1)) {
result = true
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.