On Nov 8, 3:48 pm, Guo Yangguang <[email protected]>
wrote:
> thumbnail_file=StringIO.new(thumbnail)
>
> do i need to change the above like this?Because i think the thumbnail is
> binary file.
>
If you've got a string ruby doesn't care about what's in it (of course
exactly what that line should depends on what kind of object you
have). You wouldn't get a permission error if you got that wrong
though - you'd probably just upload junk
Fred
> thumbnail_file=StringIO.new(thumbnail.to_s)
> --
> Posted viahttp://www.ruby-forum.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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---