Hi Scott,
I think the XmlWriter should be able to do that for you. You'll want to look
at the XmlTextWriter.WriteBinHex Method
"Encodes the specified binary bytes as binhex and writes out the resulting
text.
http://msdn2.microsoft.com/en-us/library/fybw7359(en-US,VS.80).aspx
The documentation sample for WriteBase64 should give you the idea at
http://msdn2.microsoft.com/en-us/library/2532kztb
Also, check out the XmlTextWriter.WriteRaw Method
http://msdn2.microsoft.com/en-us/library/3xhh5ey9(en-US,VS.80).aspx
Ken
Microsoft MVP [ASP.NET]
> we are upgrading an old COM based app to .net - one thing we need to do is
> convert an image to bin-hex and store that as text in a database. For
[quoted text clipped - 6 lines]
> we need to duplicate this in .NET.
> Any ideas?
Scott Friedrich - 20 Oct 2005 15:50 GMT
Ken,
Thanks a ton - I think the XmlTextWriter does the job.
Scott