wow...it can work perfectly thanks you , Seang. -----Original Message----- From: Sean Greer (SBI-Chico) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 8:07 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Base64
Read the file with a StreamReader, calling ReadToEnd() to get a string representation of the contents. Then call these two routines: string sContents = System.Text.Encoding.ASCII.GetString(Convert.FromBase64String(sTemp)); where sTemp is the contents of the file. Works for me...though there is more than likely a better way! Seang You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.