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 -----Original Message----- From: Agus Kurniawan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 4:37 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Base64 I have xxx file and then I convert content of this file into Base64String using method System.Convert.ToBase64String(..) (C# language) After I have converted, I save into yyy file. Now, I have problem to convert back to original file ie. convert from yyy file to xxx file what method should I use ? how to implement that method ? Agus You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.