I need to read a csv file consisting of one row, split its contents to
values and then do some calculations with these values and store
results of these calculations in a database that already has some
fields filled and a record id. I would like the users to be offered a
file open dialog for choosing the file. I am thinking of saving the
csv file to a blob field with (Field('csvfile','upload') but I am
uncertain how can I read the contents of the blob and convert it to a
numpy array for calculations.

Can the blob be treated as a file stream?

In addition, my simple attempts to try to retrieve the contents of the
blob (opening the file saved) appear to result in an error that the
file is not found when I try to reference it by the 'csvfile' name
saved. Appadmin shows a 'file' link that offers to download the file -
but I have not been able to solve how this works.

Any suggestions? Or alternative solutions to solve the problem?

Many thanks, Kari

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to