Not sure how to get HEX data from this function

Im using the Adafruit TTL Camera VC0706

In the demo this line.. "buffer = cam.readPicture(bytesToRead);" the buffer is being accessed from the camera.

readPicture returns an uint8_t as an array of bytes (i believe) Im trying to get the output of the data in HEX. How can I go about this?

HEX is a number format not a type of data. Computers store stuff in binary, you can print the values in whatever base you want.

255 = 0xFF = 0b11111111

To print the data as hex loop through it and use something like:

Serial.print( buffer[ idx ], HEX );