Set a Byte[] to a field in infopath programatically. - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Set a Byte[] to a field in infopath programatically.

Last post 10-21-2009 01:43 PM by kalyan@infopath. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 09-23-2009 09:32 AM

    Set a Byte[] to a field in infopath programatically.

     Hi all,

                      I have a byte array in my Infopath form which is to be passed to a field of (base64binary datatype or some other) directly with out converting into string. Is there any way to pass a byte[ ] directly using code? 

  • 10-20-2009 05:21 PM In reply to

    Re: Set a Byte[] to a field in infopath programatically.

    I am still looking for an answer!!!!!!!!!
  • 10-20-2009 06:09 PM In reply to

    Re: Set a Byte[] to a field in infopath programatically.

     I'm afraid there is no easy way to do this.  Microsoft has a tutorial on files into InfoPath attachment base64 strings.  With some modification it can be changed to handle byte arrays.  Please give it a try.

    http://support.microsoft.com/kb/892730

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 10-21-2009 01:43 PM In reply to

    Re: Set a Byte[] to a field in infopath programatically.

     Hi Jimmy,

                   I tried the same, using that i decoded the attachment content into a byte[ ]. But the problem here is to send the decode byte[ ] to SAP through web service. What i did was, i converted this byte[ ] to string and then tried to assign this string to a field in web service. It was saying that "An invalid character was found in text content". 

                   Is there any other way to send this byte[ ] to SAP through web service.

    Thanks,

    Kalyan. 

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