From: Markus Fischer Date: 2010-09-25T06:10:18+09:00 Subject: Re: Can't encode base64 for a jpg file Hi, I tested my code also with 1.8.7 -> works. However I don't have that version on Windows, I tested on Ubuntu. I'm not sure, I'd try to start small. E.g. the code I pasted uses ruby & PHP to encode/decode the file and it matches. Did you verify what the plain outcome of base64 encode is from ruby and compared that to the Java/Python version? Did they match? Because if they match, maybe the problem is the HTTP POST transportation (just a guess). HTH