Rails/Java XML-RPC Filter
September 19, 2007 11:12 AM
Subscribe
Railsfilter: I need to write an addition to an already-existing Rails app to allow it to accept large files (and some trivial metadata) uploaded from a Processing (Java) client I've written. The Rails app already supports this behavior via a web interface. I can see a few of the trees, how do I fit them into the forest and get a pair of working apps?
I think I understand basic XML-RPC, but file uploading seems to be a different beast. There's also the question of XML-RPC vs. SOAP vs. REST -- REST seems to be the de facto Rails standard, but there doesn't seem to be much in the way of Java REST APIs, so I'm looking at XML-RPC as the path of least resistance because of its' support through Action Web Service.
So, the question is, can someone please explain to me how file uploads through XML-RPC work? I've read about multi-part forms, base64 encoding and so forth but I'm not really sure how to put it all together.
The Rails app is using file_column for uploads, if that helps.
posted by Alterscape to computers & internet (4 comments total)
2 users marked this as a favorite
posted by genghis at 2:43 PM on September 19, 2007