Hi plz tell me how to upload a file into mysql table in Ruby On Rails ... ? also tell me how to read bytes from a file & stores in a variable in ruby ... thanks :) -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Mon, Jul 19, 2010 at 9:27 AM, Prabhat Thapa <prabhat4ever-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi plz tell me how to upload a file into mysql table in Ruby On > Rails ... ? > also tell me how to read bytes from a file & stores in a variable in > ruby ...Have you googled something about this? What you didn''t understand? What you couldn''t find? Please, don''t ask others to do your job. -- Leonardo Mateo. There''s no place like ~ -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hey bro thanks for ur reply ..... and plz don''t scold me dude ... [:P] well i have done it ... actually i got confused at a point which was base less he he he .. ! have great days ahead .. buddy tkcr .... ! On Jul 19, 6:20 pm, Leonardo Mateo <leonardoma...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, Jul 19, 2010 at 9:27 AM, Prabhat Thapa <prabhat4e...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi plz tell me how to upload a file into mysql table in Ruby On > > Rails ... ? > > also tell me how to read bytes from a file & stores in a variable in > > ruby ... > > Have you googled something about this? What you didn''t understand? > What you couldn''t find? > Please, don''t ask others to do your job. > > -- > Leonardo Mateo. > There''s no place like ~-- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
1) Look for the file upload helper for rails --- google this and you should have a start, plenty of tutorials. 2) The one thing is when you create your model (this is only for mysql) is that if your text files are of any large size (I think more than ~64000 chars??), you need to user the longtext datatype in mysql otherwise your files will get truncated. On Mon, Jul 19, 2010 at 9:20 AM, Leonardo Mateo <leonardomateo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> On Mon, Jul 19, 2010 at 9:27 AM, Prabhat Thapa <prabhat4ever-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > Hi plz tell me how to upload a file into mysql table in Ruby On > > Rails ... ? > > also tell me how to read bytes from a file & stores in a variable in > > ruby ... > > Have you googled something about this? What you didn''t understand? > What you couldn''t find? > Please, don''t ask others to do your job. > > -- > Leonardo Mateo. > There''s no place like ~ > > -- > 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.