Reputation: 102
I'm writing rails application. My task is to show data from old java application. One of the objects has images attached, I have to display these images and allow user to add new ones.
I want to know what is the best way to let user uploading images to old app.
Old app has http post method for adding images with params: multipart file, md5 hash of the image and object id.
I tried using paperclip or carrierwave but their documentation is about saving uploaded images and I just want to transfer them somewhere else and not save anything.
Upvotes: 0
Views: 63
Reputation: 1948
there are few ways to communicate with java from ruby.
however, I think maybe you can just proxy the Java API without going through the rails application.
Upvotes: 1