Denis,
An alternative approach could be to get the scanning software to send a scanned document into Aware IM, for example as an email. Such email would need to identify the type of the message (i.e. scanned document), the name of the contact and have the scanned document as an attachment. You could then add a rule to the Incoming Email notification in Aware IM that would check the message type, find the Contact object by name, create a related object with the scanned document as its attribute and attach it to the Contact object.