This requires code to decode the file attachment blob.
The following link has an article describing the structure of the attachment header:
http://blogs.msdn.com/infopath/archive/2004/03/18/92221.aspx
The following is an excerpt describing the header format:
Upon attaching a file, InfoPath first builds a header structure which includes information about the file being attached. The structure consists of the following:
BYTE[4]: Signature (based on the signature for PNG):
(decimal) 199 73 70 65
(hexadecimal) C7 49 46 41
(ASCII C notation) \307 I F A
The first byte is chosen as a non-ASCII value to reduce the probability that a text file may be misrecognized as a file attachment. The rest identifies the file as an InfoPath File Attachment.
· DWORD: Size of the header
· DWORD: IP Version
· DWORD: dwReserved
· DWORD: File size
· DWORD: Size of file name buffer
· File name buffer: variable size
Stephanie Cantwell / Test ManagerQdabra® Software / Streamline data gathering to turn process into knowledge