I use a web service for delivering snailmail. I prepare a zip-file
containing pdf for the letter, receivers and so on, encode it in
base64 and send it as base 64 in my request. It won’t work in 1.9.2
(the zip gets corrupted) but works fine in 1.8.7. I guess it’s
something with how binary strings are handled. This is the code that
works in 1.8.7:
The next thing I do is:
response = client.request :sendWithAddressing, :body => { :in0 =>
file_data_64, :in1 => ‘ebrevwebb’, :in2 => ‘jebkb’, :in3 =>
‘ebrevwebb’ }
With exactly the same ruby code the encoded file in the request starts
the same but then there are diffrences. The length of the encoded file
in the request is 4803 chars in 1.8.7 and 4864 chars in 1.9.2. The
receiving end does not accept the request from 1.9.2 saying it’s an
illegal zip.