I'm using the Rhomobile API to capture photo using camera. The image is stored in blob folder of rhomobile and the path in rhom.
Below is the code i'm using,
def capture_image
options = { :enable_editing => false }
Camera::take_picture(url_for(:action => :callback_for_capture), options)
end
def callback_for_capture
photo_uri = @params['image_uri']
photo = Photo.create({
:id => generate_unique_id(),
:photo_uri => photo_uri
})
end
I need to copy the image file to my base folder of the application. Can anyone suggest me where and how can i achieve this.
Thanks in advance