Commit 6ba5ec8a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

modify to follow recent directory structure and cloudooo API.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42203 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1c9c0417
......@@ -28,14 +28,14 @@
require 'xmlrpc/client'
input_filename = '../tests/data/test.doc'
output_filename = '../tests/output/ruby_test.odt'
input_filename = File.dirname(__FILE__) + '/../handler/ooo/tests/data/test.doc'
output_filename = 'ruby_test.odt'
in_data = File.read input_filename
enc_data = XMLRPC::Base64.encode in_data
server = XMLRPC::Client.new2 'http://localhost:8008'
result = server.call('convert', enc_data)
result = server.call('convertFile', enc_data, 'doc', 'odt')
out_data = XMLRPC::Base64.decode result
out_file = File.open(output_filename, 'w')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment