You need to sign in to do that
Don't have an account?
klppk
How to read Salesforce Attachment using partner WSDL java API and store it as a File.
Code Details:
QueryResult queryResults = partnerConnection.query("SELECT Body FROM Attachment WHERE Id = '"+attachment_id+"'");
SObject[] sObjList = queryResults.getRecords();
SObject attachment = sObjList[0];
Now I need to store the attachment (JPG file) as a file in my Server. Please provide your suggestions to achieve it. Thanks.
QueryResult queryResults = partnerConnection.query("SELECT Body FROM Attachment WHERE Id = '"+attachment_id+"'");
SObject[] sObjList = queryResults.getRecords();
SObject attachment = sObjList[0];
Now I need to store the attachment (JPG file) as a file in my Server. Please provide your suggestions to achieve it. Thanks.
All Answers