//
// The pointer to where the JPEG starts is 84 bytes in. The length of
// the JPEG is 4 bytes after that. Both are always in big-endian.
//
final ByteOrder origOrder = buf.order();
buf.order( ByteOrder.BIG_ENDIAN );
final int offset = buf.getInt( 84 );
final int length = buf.getInt( 88 );
buf.order( origOrder );
return JPEGImageType.getImageFromBuffer(
buf, offset, length, null, 0, 0