How to save element with type=base64Binary to a file?

Home Page Forums BizTalk 2004 – BizTalk 2010 How to save element with type=base64Binary to a file?

Viewing 1 reply thread
  • Author
    Posts
    • #18852

      I have a question:

      How can I save an XSD element with type = base64Binary to a file?

      Do I need a pipeline?
      And if so, which kind of pipeline?

      Is there an other option that does the job?

      Thanks,

      Robbish.

    • #18853

      Robbish: Certainly you could do thid in a pipeline, but it would need to be done using a custom pipeline component. You could also do it inside a simple .NET component called from an orchestration…. 

      • #19059

        How do you save an XSD element with type = base64Binary to a file please?

         Thanks,

        Tuyen

        • #19060

          You could use C# code like:

          FileStream fs = new FileStream(FileSaveName, FileMode.OpenOrCreate); // FileSaveName is FileName to save to
          BinaryWriter writer = new BinaryWriter(fs);
          writer.Write(Base64EncodedSting, 0, Base64EncodedStringLength); //Base64EncodedSting is Base64Encoded data in XSD element
          // writer.Write(Base64EncodedSting); will work also
          writer.Close();
          fs.Close();

          As far as I know, can you put this in a Expression Shape or in a Custom Pipeline.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.