File attachment binary64 creates text on header - InfoPath Dev
in

InfoPath Dev

File attachment binary64 creates text on header

Last post 12-14-2005 05:38 AM by AndersR. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-13-2005 05:50 AM

    • nacho
    • Not Ranked
    • Joined on 12-13-2005
    • Posts 4

    File attachment binary64 creates text on header

    I have a "File Attachment" control in the form,and when attaching a video "avi" file, it is converted to binary64 and placed into the XML file, well, when I take this binary64 text in my Web Service and then convert it back into an "avi", but InfoPath had added to the binary64 text some more text and also the name of the original file, something like that:

    ÇIFA   t e s t O n e . a v i

    the result is that I can not open it with any video player because of this anoying line!!

    does anyone knows how to get rid of this line??

    thanks in advance

    nacho
  • 12-14-2005 05:38 AM In reply to

    Re: File attachment binary64 creates text on header

    All attachments in InfoPath gets an InfoPath header.

    This header is used to show file data such as size, icon and filename in the form.

    To extract data for your webservice you need to remove this header.

    The data structure of the header is described in the SDK.

    I have done this already for a web service myself, so check out the posting linked below for code.

    Remember when you recieve the infopath attachment filename, that it is has a terminating zero, so you need to remove the last char to make your web service call well-formed.

    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1213&SearchTerms=attachment#3532

    hth
    //AndersR


Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.