Roland just showed you how to inline it.

Here's a little article on the technique he's using:

http://jimbojw.com/wiki/index.php?title=Data_URIs_and_Inline_Images

However, as Jenna said, this technique doesn't work in IE.  Her first
suggestion is probably the path of least resistance.

--beppu

On Tue, Feb 3, 2009 at 5:35 AM, Cornelius Jaeger <cjli...@visualfood.ch>wrote:

> Hi Jenna, Roland
>
> Thanks for your responses.
> How can I get the image inline in the html, rather than downloading it to
> the user?
> I'm not at all sure how to use markaby to stream the image data into
> something the img tag will understand.
> Many Thanks for helping
>
> Cornelius
>
>
>
>
> On 03.02.2009, at 01:58, Jenna Fox wrote:
>
>  Make a controller with a get method to retrieve the image, then, have some
>> code like this in it, supposing image_data is a string or something:
>>
>> headers['Content-Type'] = 'image/png'
>> headers['Content-Length'] = image_data.length.to_s
>> return image_data
>>
>>
>> On 03/02/2009, at 10:58 AM, Cornelius Jaeger wrote:
>>
>>  hi all
>>>
>>> just working on my first camping hack and new to ruby as well.
>>> i've figured some things out and uploading images into the database, but
>>> i'm not sure how to get the data displayed in the browser.
>>> i'd like to stream it straight from the db, not copy it to the fs first.
>>> obviously img(:src => file_data) doesn't work.
>>> any pointers or reading assignments would be v. welcome.
>>> many thanks
>>>
>>> cornelius
>>> _______________________________________________
>>> Camping-list mailing list
>>> Camping-list@rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/camping-list
>>>
>>
>> _______________________________________________
>> Camping-list mailing list
>> Camping-list@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/camping-list
>>
>
> _______________________________________________
> Camping-list mailing list
> Camping-list@rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to