Friday 29 June 2012 1:30:09 pm
Finally I opted for the solution:
Create the image in local,
Using something like this:
$this->cacheDir = 'var/site/jobs/';
$cacheImage = $this->cacheDir.basename(";" title="http://www.yourdomaine.com/episode.jpg"
;">http://www.yourdomaine.com/episode.jpg"
;
$imageData = eZHTTPTool::getDataByURL( "http://www.yourdomaine.com/episode.jpg" );
$f = fopen( $cacheImage, 'w+' );
fwrite( $f, $imageData );
fclose( $f );
$content->fields->image = $cacheImage;
thanks
You must be logged in to post messages in this topic!