From: Jan Svitok Date: 2007-02-09T18:39:02+09:00 Subject: Re: Problem with Base64 decoding On 2/9/07, alexander wrote: > hi there, > thank you for your tips! > > and indeed using write instead of puts i atleast got the filesize right. > sadly everything else is still wrong. > > i think the problem is definitely in the decoding, but i don�t even know > where to start there since the resulting files vary to a great degree. > inspecting a hexdump of both decoded files show that they are not even > remotely the same. If you post your code along with expected and actual output (e.g. those hexdumps), perhaps somebody will have a look... just post as short data file as possible (meaning that it still decodes wrong). That reminds me: did you try decoding an empty file?