Save the image to your local filesystem, then pass those locations to the 
method, rather than passing HTTP urls directly.

-- 
Dheeraj Kumar


On Tuesday 8 January 2013 at 6:51 PM, Saravanan P wrote:

> Hello everyone
> 
> I am using rubyzip gem for zipping files.
> 
> Zipping local files are good and except zipping remote files.
> 
> Example(my code):
> save_path="xxx/xx"
> image_list = ["http://xxxx.xx.image.jpg","http://xxxx.xx.image.jpg";]
>    Zip::ZipFile.open(save_dir, Zip::ZipFile::CREATE) { |zipfile|
>     image_list.each do |image|
>       zipfile.add(image, save_pathr + '/' + image)
>     end
>    }
> 
> 
> I am gettting error as "No such file or directory - http://xxxx.xx.image.jpg";
> 
> how can zip my remote files?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected] 
> (mailto:[email protected]).
> To unsubscribe from this group, send email to 
> [email protected] 
> (mailto:[email protected]).
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/rubyonrails-talk/-/e61F3H1gXQEJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to