473,326 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

pyuno store OO object into blob

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.

Oct 12 '08 #1
2 1581
On Sun, Oct 12, 2008 at 1:41 PM, DarkBlue <pi*****@gmail.comwrote:
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.

--
http://mail.python.org/mailman/listinfo/python-list

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
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
Oct 12 '08 #2
DarkBlue schrieb:
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
Oct 14 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: cover | last post by:
The question is, we have two options to store images, either in a Database (MySQL, Postgres, ...) like blob data, or in the hard disk the file and the path in database. Which option is better?...
4
by: Thomas Guettler | last post by:
Hi! This script will convert files to PDF with OpenOffice. Other formats (html, doc ...) should be possible, too. Have a nice day, thomas # OpenOffice1.1 comes with its own python...
1
by: Selen | last post by:
which one is good blob or store documents on the server???? Thanks
2
by: Nicolas | last post by:
How to store multiple files in only one sql blod field in sql database Like I got a record for a house: ID Name addresss price attachments The field "attachments" may contains documents...
19
by: Lisa Jones | last post by:
Hi I don’t want to change my name or anything :) but I wish I was able to save Sound into SQL server and retrieve it So my question is How do you save a wav file into a SQL server and how do...
10
by: Peter Stojkovic | last post by:
I want store an integer-array of 1000 Values in a blob in a SQL-database. I will do this every 10 Seconds. How can I do this ???? What datatypes a have to use ??? Thanks
7
by: Katja Süss | last post by:
Hi! maybe somebody can give me an hint to my problem setting up PyUNO on my Mac to work with my Python not the Python delivered with OpenOffice. As said in installation instructions I've set...
0
by: Big George | last post by:
I'm developing with ASP.NET, VS.NET 2003. Using Crystal Report for VS.NET DataBase: Oracle 10g I store a BLOB field in a table. This field store images, like jpg files. The Stored Procedure...
6
by: Keith Hughitt | last post by:
Hi all, I've run into a strange error while trying to store some PNG images in a MySQL database using MySQLdb. When I try to insert smaller images (< 64kb or so) everything seems to work fine....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.