pyuno store OO object into blob

D

DarkBlue

Hello

Python 2.5.1
Qt 4.4.0
PyQt 4.4.2
OO 2.4.1
Firebird 2.1

I want to store an openoffice writer object into a blob field using
the pyuno bridge. I read about the possibility of using streams ,
but only see some old basic or java examples .

The writer document has been created and stored into an odf file
on disk. How to get it from there into the blob ?

Thanks for any ideas.
 
M

Marco Bizzarri

Hello

Python 2.5.1
Qt 4.4.0
PyQt 4.4.2
OO 2.4.1
Firebird 2.1

I want to store an openoffice writer object into a blob field using
the pyuno bridge. I read about the possibility of using streams ,
but only see some old basic or java examples .

The writer document has been created and stored into an odf file
on disk. How to get it from there into the blob ?

Thanks for any ideas.


I've little experience with firebird, and did this one only with
PostgreSQL; but once you get the odf file, can't you just write on a
temp file and read (and write) from that?

Regards
Marco
 
H

Hartmut Goebel

DarkBlue said:
I want to store an openoffice writer object into a blob field using
the pyuno bridge. I read about the possibility of using streams ,
but only see some old basic or java examples .

The writer document has been created and stored into an odf file
on disk. How to get it from there into the blob ?

The openoffice-python library <http://openoffice-python.origo.ethz.ch/>
contains hight-level support for streams. See sample script at
<http://svn.origo.ethz.ch/wsvn/openoffice-python/trunk/sample-scripts/open-stream.py>

--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP

Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top