locked
Byte Array RRS feed

  • Question

  • User1503477839 posted

     Hi,

        In my application and using a third party component api and it is used in my web service.

     everything is fine but my thirt party tool create a pdf file when we do some  operation.

    i get that pdf as byte array..

    now i want that to be me body of my mail..

    i tried to convert it to stirng with

    System.Text.ASCIIEncoding oASCIIEncoding = new System.Text.ASCIIEncoding();
                string strinvoice = oASCIIEncoding.GetString(bInvoice);

     

    i get some unknown script like data not the proper data 

    i want this to be done ..i just want the content in byte array to be converted to string or array..

    PLz help me thanks in advance 

     

    Wednesday, July 23, 2008 5:45 AM

Answers

  • User1710623990 posted

    Why not have a try with System.Text.UnicodeEncoding()

    Hope that helps [Yes] 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 23, 2008 7:12 AM