How to upload file to desk and attach it to a ticket

How to upload file to desk and attach it to a ticket

I want to bring tickets from a local private system to Zoho as part of a data migration. In doing so, I need to transfer attachments (database BLOB) to Zoho. These files should be transferred to the attachment of tickets.

How can I accomplish this?