On Sep 9, 2010, at 3:12 PM, radhames brito wrote:
can you explain why arent you using paperclip? i use it with
imagemagick and can easily convert my file to almost any format with
very easy.
Well, he's not starting with a file, for one thing.
-Rob
On Thu, Sep 9, 2010 at 2:07 PM, Frederick Cheung <frederick.che...@gmail.com
> wrote:
On Sep 9, 5:54 pm, John Chufar <li...@ruby-forum.com> wrote:
>
> I still cannot see how to possibly pass a blob through ajax
response, so
> this is the my simple (NOT effective approach) versus memory
storage.
>
I think the root of the problem you are grappling with is that putting
an image on a page requires two http requests: one that creates an
image tag with the appropriate src attribute, and then the request
from the browser when it tries to display that img tag.
If that isn't acceptable then there is a way of encoding the image
data in the img tag your self, you basically stick
<img src="data:image/bla,base64encodedimagedatahere" />
It's not supported by all browsers though (
http://en.wikipedia.org/wiki/Data_URI_scheme
)
Fred
--
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 rubyonrails-
t...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com
.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
.
--
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 rubyonrails-
t...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com
.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
.
Rob Biedenharn
r...@agileconsultingllc.com http://AgileConsultingLLC.com/
r...@gaslightsoftware.com http://GaslightSoftware.com/
--
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.