From: Eddy Velasquez Date: 2010-09-25T05:47:47+09:00 Subject: Re: Can't encode base64 for a jpg file Thanks Markus, I also tried to encode and decode from Ruby and it works there, but when I send the encoded file to the PHP page, it somehow save a different file, my development environment is a Windows XP and the page is on a MacOs X Server, its on the same network that I'm. When I posted via http post with java (using BASE64Encoder().encode from package sun.misc.BASE64Encoder) the file size is 107,602 bytes, but from ruby using the methods I listed before its 105,796 bytes. the version of ruby i'm using is ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32] -- Posted via http://www.ruby-forum.com/.