locked
Convert MSI to Byte Array RRS feed

  • Question

  •  

    Hi All,

    I have a webservice which transfers and MSI file from Server to requested client. here i need to convert MSI to Byte Array and then to string, finally send this string to client. can some one help me in this?

    Tuesday, February 12, 2008 10:55 AM

Answers

  • If the MSI is just a file, you simply read the file using Stream.Read. Have the web method return an array of bytes. You don't need to translate it into a string. Your client will receive an array of bytes that it will be able to write into a file using Stream.Write.

     

    Tuesday, February 12, 2008 2:59 PM
    Moderator