JCV Posted February 2, 2018 Share Posted February 2, 2018 (edited) Hello, I'm currently interfacing my Erp to Prestashop 1.7.2.4 by the web service and the curl.exe tool. I write the xml datas in a file and I use curl to send and receive informations. I already send categories, products, and stocks ... ouff ! Now I'm trying to send pictures like this : curl.exe -X POST --header "Content-Type: image/jpeg" --data-binary @c:\gi\fabel\images\tri0000000029.jpg --user XXXXXXXXXXXXXXXXXX: www.MySite.com/shop/api/images/products/23 -o c:\gi\fabel\presta\111800002409img_2gi.xml but I always an error 66 ! Can you tell me if the method is good ? or must I put the image inside a XML file ? a sample ? Thank for your help. JC Edited February 6, 2018 by JCV (see edit history) Link to comment Share on other sites More sharing options...
JCV Posted February 6, 2018 Author Share Posted February 6, 2018 Pas bcp d'aide ici, à force de chercher, j'ai trouvé tout seul ... Voici la solution : curl -F image=@c:\...\image;jpg --user xxxxx: www.shop.com/api/images/products/23 -o reponse.xml Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now