public function getThumbnailData() { if ($this->thumb_data !== null) { return $this->thumb_data->getBytes(); } else { return ''; } }