Read the data buffer of esp32 cam as binary

can I define

camera_fb_t * fb = NULL;
fb = esp_camera_fb_get();

as global ? and what is the correct way?