RubyonRails

We have a J2ME application that should upload a file (image) to our rubyonrails server,    where J2ME acts as client part and rubyonrails as server side. I wanted to know how to LINK the J2ME client side having rubyonrails as server part.

use HTTP multipart post.