Writeexcel not writing the image from url

26 views
Skip to first unread message

sathish thandavan

unread,
Mar 12, 2015, 7:59:12 AM3/12/15
to rubyonra...@googlegroups.com
I used Writeexcel insert_image method to write the image from local folder and it is working fine as below;


@worksheet.insert_image("A#{row_name}", usage.asset.image(:small))

But when I used to insert image from amazon s3 url, image is not inserting and getting error as

could not locate the filename.

Colin Law

unread,
Mar 12, 2015, 8:07:06 AM3/12/15
to rubyonra...@googlegroups.com
On 12 March 2015 at 11:59, sathish thandavan
Can you point me to where in the docs for insert_image it says that
the file can be anything other than a local file?

Colin

sathish thandavan

unread,
Mar 12, 2015, 8:43:47 AM3/12/15
to rubyonra...@googlegroups.com
In the docs it provide examples for local files only and not for url, I am trying to get the image from url
Is this support?

Colin Law

unread,
Mar 12, 2015, 9:20:04 AM3/12/15
to rubyonra...@googlegroups.com
On 12 March 2015 at 12:43, sathish thandavan
<sathish....@gmail.com> wrote:
> In the docs it provide examples for local files only and not for url, I am
> trying to get the image from url
> Is this support?

If it were supported I would have expected that to appear in the documentation.

Colin

>
> On Thursday, 12 March 2015 17:37:06 UTC+5:30, Colin Law wrote:
>>
>> On 12 March 2015 at 11:59, sathish thandavan
>> <sathish....@gmail.com> wrote:
>> > I used Writeexcel insert_image method to write the image from local
>> > folder
>> > and it is working fine as below;
>> >
>> >
>> > @worksheet.insert_image("A#{row_name}", usage.asset.image(:small))
>> >
>> > But when I used to insert image from amazon s3 url, image is not
>> > inserting
>> > and getting error as
>> >
>> > could not locate the filename.
>>
>> Can you point me to where in the docs for insert_image it says that
>> the file can be anything other than a local file?
>>
>> Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/c5d00e6f-d50f-4ee9-8e8c-d2a9c24ec40c%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages