Peter Bailey wrote: > John Joyce wrote: >> On Mar 9, 2007, at 4:55 AM, Peter Bailey wrote: >> >>> >>> Does anyone know of any inherent problems with net/http under Windows? >> >> Are you kidding?!! Uh, Windows would be the problem. It often is. > > Now, now. No need for religious wars. Personally, I'm planning on > getting a Mac at home. . . . But, yes, I've been a Windows guys for 15 > years. Never mind. I found the problem, or, my Unix colleague did. Apparently, Windows needs to be told to read a file either binarily or textually. So, I had to modify this line to specifically tell it to read binarily. image_contents = File.open(file, "rb").read() Thanks. Cheers. -- Posted via http://www.ruby-forum.com/.