[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    KTarGz and streams
From:       "Pascal A. Niklaus" <Pascal.Niklaus () unibas ! ch>
Date:       2001-07-29 22:12:00
[Download RAW message or body]

I'd like to save KCite database files 'tar | zipped'. I had a look at 
KTarGz, but the only function I could find to add files takes a buffer 
containing the whole file as argument. In my case, however, the files 
contains a data base which can potentially be huge so that trying to load 
it into memory is probably not a good idea. I think what I am looking for 
is a way to bind an output stream to KTarGz.

- Is that possible? Or does KTarGz require that all files are fully loaded 
into memory?
- If KTarGz will not work as I need it, is there another solution you could 
suggest?  For the moment I try to run the systems tar over a KProcess, but 
this involves other problems.

Pascal

PS: This may be a bit off-topic, but since KCite is a tool for KWord and 
KOffice uses tar|gzipped files koffice-devel is probably not so bad ;-)

________________________________________________________

Present address:

Pascal Niklaus
Landcare Research
Private Bag 11 052
Palmerston North
New Zealand

Phone: +64 6 356 7154 (reception)
        +64 6 350 5799 3968 (direct)
Fax:   +64 6 355 9230

e-mail: <mailto:Pascal.Niklaus@unibas.ch>Pascal.Niklaus@unibas.ch or 
<mailto:Pascal.Niklaus@gmx.ch>Pascal.Niklaus@gmx.ch
_________________________________________________________

[Attachment #3 (text/html)]

<html><div>I'd like to save KCite database files 'tar | zipped'. I had a
look at KTarGz, but the only function I could find to add files takes a
buffer containing the whole file as argument. In my case, however, the
files contains a data base which can potentially be huge so that trying
to load it into memory is probably not a good idea. I think what I am
looking for is a way to bind an output stream to KTarGz.</div>
<br>
<div>- Is that possible? Or does KTarGz require that all files are fully
loaded into memory?</div>
<div>- If KTarGz will not work as I need it, is there another solution
you could suggest?&nbsp; For the moment I try to run the systems tar over
a KProcess, but this involves other problems.</div>
<br>
<div>Pascal</div>
<br>
<div>PS: This may be a bit off-topic, but since KCite is a tool for KWord
and KOffice uses tar|gzipped files koffice-devel is probably not so bad
;-)</div>
<br>

<tt>________________________________________________________<br>
<br>
Present address: <br>
<br>
Pascal Niklaus<br>
Landcare Research<br>
Private Bag 11 052<br>
Palmerston North<br>
New
Zealand&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <br>
<br>
Phone: +64 6 356 7154 (reception)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +64 6 350 5799 3968 (direct)<br>
Fax:&nbsp;&nbsp; +64 6 355 9230<br>
<br>
e-mail:
<a href="mailto:Pascal.Niklaus@unibas.ch">Pascal.Niklaus@unibas.ch</a> or
<a href="mailto:Pascal.Niklaus@gmx.ch">Pascal.Niklaus@gmx.ch</a><br>
_________________________________________________________<br>
</html>


_______________________________________________
Koffice-devel mailing list
Koffice-devel@master.kde.org
http://master.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic