Hi Eduardo, Thanks for the response.
Is it something like this, the file that I will be sending from client will come as a huge string and I need to handle it in the below mentioned way? I am confused about, who will convert the file into sting and send it. On Thursday, November 21, 2013 5:55:28 PM UTC+5:30, Eduardo Cruz wrote: > > Web2Py Book: > Uploads<http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#More-on-uploads> > > You could do something like > > import StringIO > > myfile = StringIO.StringIO() > myfile.write(yourtextfile) > > being "yourtextfile" the text-file you sent from the client(which would > be actually a huge string) > then do something like > > db.mytable.insert(file=db.mytable.file.store(myfile, "filename")) > > > > > > On Thursday, November 21, 2013 12:43:22 AM UTC-4, Raj Chinna wrote: >> >> Can someone give me a pointer.. I am waiting for the response.. > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.