public function uploadBase64(ImageInterface $image, $content, array $options = [])
    {
        $this
            ->tmpFile
            ->create()
            ->write(base64_decode($content));

        try {
            $image = $this->upload($image, $this->tmpFile->getPath(), $options);
        } finally {
            $this->tmpFile->clear();
        }

        return $image;
    }
public function uploadBase64(ImageInterface $image, $content, array $options = [])
    {
        $this
            ->tmpFile
            ->create()
            ->write(base64_decode($content));

        try {
            $image = $this->upload($image, $this->tmpFile->getPath(), $options);
        } finally {
            $this->tmpFile->clear();
        }

        return $image;
    }
public function uploadBase64 ( ImageInterface $ image , $ content , array $ options = [ ] ) { $ this -> tmpFile -> create ( ) -> write ( base64_decode ( $ content ) ) ; try { $ image = $ this -> upload ( $ image , $ this -> tmpFile -> getPath ( ) , $ options ) ; } finally { $ this -> tmpFile -> clear ( ) ; } return $ image ; }
Upload by base64 encoded source

@param ImageInterface $image   Image entity
@param string         $content Base64 source
@param array          $options Upload options

@return ImageInterface
Upload by base64 encoded source