简体   繁体   English

在magento中通过SOAP上传图像时出错

[英]Error while uploading images through SOAP in magento

I am having trouble in uploading the image in magento ce 1.7 through my soap api. 我无法通过我的soap api在magento ce 1.7中上传图像。 I am uploading the images but it is creating a temp path inside var/api/sessionid/imgname. 我正在上传图像,但它正在var / api / sessionid / imgname中创建一个临时路径。 Sometimes in that path i am getting the image does not exists error. 有时在那条路径中我得到的图像不存在错误。

Here is the detailed description of what i am doing. 这是我在做什么的详细说明。

My function for image uploading - 我的图像上传功能-

catalogProductAttributeMediaCreate(lstr_sessionId, lstr_productId, oProductImage, StoreId.ToString(), "");

My error - 我的错误-

System.Web.Services.Protocols.SoapHeaderException: File C:\\xampp\\htdocs\\mymagento\\var\\api\\dece42536f86f2996f38d2bd9ab4a23f\\SHIMANO ULTEGRA BR/66X BK BAK.jpg does not exists System.Web.Services.Protocols.SoapHeaderException:文件C:\\xampp\\htdocs\\mymagento\\var\\api\\dece42536f86f2996f38d2bd9ab4a23f\\SHIMANO ULTEGRA BR/66X BK BAK.jpg不存在

Please suggest any solutions. 请提出任何解决方案。

问题已解决,我发现Web服务不接受带有特殊字符的文件名传递没有特殊字符的图像名解决了我的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM