Serial.print((char *)buffer);
If this is JPEG data, then a lot of codes are not going to be printable ASCII.