Upload File to File Upload Field with Zoho Java SDK

Upload File to File Upload Field with Zoho Java SDK

Hi,

I was wondering if it is possible to upload a File to a file upload field in a custom module using the Zoho Java SDK.
I am able to upload a file as an attachment like this:

ZCRMRecord record = ZCRMRecord.getInstance(...);
APIResponse responseIn = record.uploadAttachment(pathToFile);

This works fine, but it would be nice if I could upload the file directly to the file upload field instead of uploading it as an attachment. Is this possible and if so how?

Thanks