pyuno store OO object into blob

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DarkBlue

    #1

    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.

  • Marco Bizzarri

    #2
    Re: pyuno store OO object into blob

    On Sun, Oct 12, 2008 at 1:41 PM, DarkBlue <pict100@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.
    >
    --

    >

    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
    Where we talk about coding, Dungeons and Dragons, and stuff.


    Comment

    • Hartmut Goebel

      #3
      Re: pyuno store OO object into blob

      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.et hz.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
      Hallo, mein Name ist Hartmut Goebel, ich bin Spezialist für Information-Security-Management mit starkem technischen Hintergrund. Zertifizierte Sicherheit und sinnvolles Sicherheits­management sind ele

      Comment

      Working...