Updating image in article via SOAP

Updating image in article via SOAP

Wednesday 25 February 2009 8:12:08 am - 1 reply

Modified on Wednesday 25 February 2009 8:13:42 am by Michael de Vries

Author Message

Michael de Vries

Thursday 26 February 2009 2:50:30 am

Ok, I "solved" this myself. What I do now is in the setImage method call the following:

$attribute->setAttribute("data_text", "");
$attribute->store();

After this, the image is automagically set right by the following line of code.

$image =& eZImage::create($attribute->attribute("id"), $attribute->attribute("version"));

Not sure I this is the right way, but it works for me.

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.