Jump to content

Unable to save this image, when try to POST images via API


Recommended Posts

Hello, I am try to generate XML file to POST images for Product.

XML:

<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<image>"D:\..\External_Moduls\POS_Interface\Files\images\183_1.jpg"</image>
</prestashop>
 
after that I send XML using idHTTP.POST to: Http://myWebService-Key@myurl/api/images/products/183
 
and return answer is :
 
<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<errors>
<error>
<code><![CDATA[66]]></code>
<message><![CDATA[unable to save this image]]></message>
</error>
</errors>
</prestashop>
 
------
Prestashop version is 1.6.1.1
 
all rights are enabled for this Webservice key.
 
How Can I send images via xml.
 
Edited by [email protected] (see edit history)
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...