Upload a file to add as an Attachment for a Zoho CRM record

Upload a file to add as an Attachment for a Zoho CRM record

Hi. I am trying to use the API to upload and attach a file to a Zoho CRM record.

There is an XML example (at https://www.zoho.com/developer/help/api/uploadfile.html):

      XML Format:
      https://<APPDOMAIN>/crm/private/xml/Leads/uploadFile?id= Record Id &content= File Input Stream

Here is my sample string: https://crm.zoho.com/crm/private/xml/Contact/uploadFile?authtoken=<Auth Token>&scope=crmapi&id=<Record ID>&content='C:\Zoho Docs\Sample - John\Correspondence\Contact Relationship.doc'

The File Input Stream seems to be the difficulty.

I have not figured out how to do this in vb.NET. I have converted the Java example, but the code does not convert well enough to understand.

Would you please reply with a full code sample in vb.NET?

Thank You!