xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timo Haberkern <thaberk...@emedia-office.de>
Subject Re: Serialize a SvgDocument to database?
Date Mon, 16 Sep 2002 13:42:27 GMT
How do you do that? Is it an easy way? I tried to serialize the DOM 
through the following way

ByteArrayOutputStream objBAStreamHighRes = new ByteArrayOutputStream();
PrintWriter writer = new PrintWriter(objBAStreamHighRes);
DOMUtilities.writeDocument(curImage.getSvgDocument(), writer);
writer.flush();
writer.close();
...
stmt.setBytes(1, objBAStreamHighRes.toByteArray());

Seems to work (no errors, but i can't see it, because MS SQL can't show 
the content of a blob field), but what about the way back.???

Timo

Hugues PARVILLERS wrote:

>Ok.
>I saw the second answer to your post.
>
>I do it in the other way : I produce SVG out of my oracle spatial 
>database :-)
>
>H/P
>
>-----Original Message-----
>From: Timo Haberkern <thaberkern@emedia-office.de>
>To: Hugues PARVILLERS <Hugues@parvillers.homeip.net>
>Date: Mon, 16 Sep 2002 15:31:27 +0200
>Subject: Re: Serialize a SvgDocument to database?
>
>  
>
>>A relational database. Concrete: MS SQL, i want use the setBytes 
>>function of jdbc
>>
>>Timo
>>
>>
>>
>>Hugues PARVILLERS wrote:
>>
>>    
>>
>>>what kind of database ?
>>>
>>>
>>>
>>>-----Original Message-----
>>>From: Timo Haberkern <thaberkern@emedia-office.de>
>>>To: batik-users@xml.apache.org
>>>Date: Mon, 16 Sep 2002 15:16:41 +0200
>>>Subject: Serialize a SvgDocument to database?
>>>
>>> 
>>>
>>>      
>>>
>>>>Hello together,
>>>>
>>>>i want to serialize a SVGDocument to a database (in a blob field). 
>>>>Anyone here whoe can tell me how i can save and load that through
>>>>        
>>>>
>>JDBC?
>>    
>>
>>>>-- 
>>>>best regards
>>>>
>>>>Timo Haberkern
>>>>
>>>>EMEDIA OFFICE GmbH
>>>>Wingertstr. 4
>>>>74850 Schefflenz-Kl.
>>>>
>>>>http://www.emedia-office.com
>>>>thaberkern@emedia-office.de
>>>>
>>>>Tel.: 06293/921121
>>>>Fax:  06293/921129
>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>.
>>>
>>> 
>>>
>>>      
>>>
>>-- 
>>Grüsse
>>
>>Timo Haberkern
>>
>>EMEDIA OFFICE GmbH
>>Wingertstr. 4
>>74850 Schefflenz-Kl.
>>
>>http://www.emedia-office.com
>>thaberkern@emedia-office.de
>>
>>Tel.: 06293/921121
>>Fax:  06293/921129
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: batik-users-help@xml.apache.org
>.
>
>  
>

-- 
Grüsse

Timo Haberkern

EMEDIA OFFICE GmbH
Wingertstr. 4
74850 Schefflenz-Kl.

http://www.emedia-office.com
thaberkern@emedia-office.de

Tel.: 06293/921121
Fax:  06293/921129



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message