On Feb 21, 2006, at 8:44 PM, python eager wrote: > Hi > > how to upload & open a file in python. Please send the code > > snippet . It is very helpful in my project.i am using Oracle 9i. > For example store msword doucment & Excel doucment. Thereafter this > can be open in same software where it is stored. > > > Please help me
I don't use oracle 9i, but here's the BASIC steps you'll need to go through. * Create a schema with a column that can store binary objects. * Use an INSERT statement that inserts your word document as one of the attributes. When retriving with a SELECT, send it out to the web server like this: print "Content-Type: application/ms-word" print print returned_contents_from_select That's it... but... you'll still need to learn a fair bit to get all this working, and unless someone here is feeling especially helpful, you'll need to learn this yourself. db-sig isn't a free programming contract shop, we're here to help you with the database interfaces with python, and it soounds like you need a LOT more help than that. -- ("`-/")_.-'"``-._ Chris Cogdon <[EMAIL PROTECTED]> . . `; -._ )-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL _______________________________________________ DB-SIG maillist - DB-SIG@python.org http://mail.python.org/mailman/listinfo/db-sig