I have tried database field as both image and varbinary(MAX).
Lots of fileds on my form are within a repeating section and When I try to enter a File attachment control in this repeating section I get a file attachment binding pop up. I select the correct data field and then again I get the message:
A file attachment control must be bound to a non-repeating field with a picture or file attachment data type. If the field is part of a repeating group, then the file attachment control must be inside a repeating table or repeating section that is bound to that group.
The repeating section on my form is bound to the Main datasource on the form to the data fields section.
Any ideas?