getImageAsString() public method

This function is useful for getting the raw image data as a string for storage in a database, or other similar things.
public getImageAsString ( ) : string
return string
Example #1
0
 /**
  * Get the image data
  *
  * @return string Image data
  */
 public function get()
 {
     return $this->thumb->getImageAsString();
 }
Example #2
0
 public function __toString()
 {
     return parent::getImageAsString();
 }