I want to download photos from my website after zipping. I am using rubyZip gem but unable to zip remote files. Following is the scenario:
I am trying to zip content from server. Content is something like this
http://myApplication.s3.amazonaws.com/xxxxxxxx/image/image1.jpeg,
So in "zipfile.add( attachment.document_file_name, attachment.document.url)", i assigned following values:
document_file_name = image1.jpeg/image2.jpeg/image3.jpeg document.url = http://myApplication.s3.amazonaws.com/xxxxxxxx/image
Now here I am getting following error:
No such file or directory - myApplication.s3.amazonaws.com/xxxxxxxx/image
This gem is working fine if I zipped files from local file system (e.g: /home/user/images) but not for remote files.
Is I am doing something wrong? Can someone help me out? Or any other gem which can do this?
Thanks, -Tahniyat