From: Khudadad Kazi Date: 2013-06-07T19:30:06+09:00 Subject: Re: Converting an xml file to byte array in ruby That got resolved. The call to the web services required the array to be passed as: target_ids=[] target_ids.push('fr-fr') target_ids.push('de-de') And the Base64.encode64 worked as file_data=Base64.encode64(File.read(file_path)) Thanks for your help :) -- Posted via http://www.ruby-forum.com/.