i have flash application ,which will give a jpg file as raw_post
from that raw_post i am trying to store into a tempfile
tempfile=Tempfile.new("myfile.jpg")
tempfile.write(request.raw_post)
but always "tempfile.read" giving ""(not storing the data) as output
i don't why ?
any help ?
--
Posted via http://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
-~----------~----~----~----~------~----~------~--~---