Sychronize JPEG camera and SD card

Not a JPEG file: starts with 0xff 0xec

A JPEG should start with 0xFF 0xD8, I think.

FFEC is application-specific data.

It sounds like the data from the camera may need some wrappers before it is a true JPEG-format image.

Need more detail - I don't have any of this gear.