4 respuestas

Subhranshu - You can pass the base64/ blob content of the file in the web service. As an example, I created a small web service class:
The above would generate the WSDL that would contain the blobl paramter as below:<xsd:element name="body" type="xsd:base64Binary" nillable="true"/>From PHP, you would then pass the base64 value of the file in the "body" attribute of the XML.Let me know if this solves your problem. Don't forget to mark it solve to benefit others :)Regards,Varun.global class WebServiceClass {
webService static String insertAttachment(String parentId, Blob body, String name) {
Attachment att = new Attachment();
att.Name = name;
att.Body = body;
insert att;
return att.Id;
}
}