ZURINET
asked on
MemoryStream Convert.ToBase64String
Hallo
Need to convert a string to base64 stream
any Idea..?
see code below
Thanks
Need to convert a string to base64 stream
any Idea..?
see code below
Thanks
StreamReader reader = new StreamReader(@"C:\Inetpub\ftproot\100.xml");
string parseInvResult = reader.ReadToEnd();
byte[] binaryData
using (MemoryStream basePdfMemStream = new MemoryStream(Convert.ToBase64String(parseInvResult)))
{
binaryData = basePdfMemStream.ToArray();
}
Base 64 is used to represent binary data as a string not the other way around. Please clarify.
ASKER
Hi wdosanjos
I have a need to provide base64 string for the datatype
byte[] Data;
in any XML file..
I have an xml document; I need to convert to base64 and insert it in into another xml document
i.e soap body element.. defined as base64
what should be the best approach?
I have a need to provide base64 string for the datatype
byte[] Data;
in any XML file..
I have an xml document; I need to convert to base64 and insert it in into another xml document
i.e soap body element.. defined as base64
what should be the best approach?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Answer not complete
Hi ZURINET,
What's missing?
Regards.
What's missing?
Regards.