From: | Doug McNaught <doug(at)wireboard(dot)com> |
---|---|
To: | prashanth bhat <prashanth_bhat(at)yahoo(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: newbie question |
Date: | 2001-02-26 17:07:13 |
Message-ID: | m3vgpxxtj2.fsf@belphigor.mcnaught.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
prashanth bhat <prashanth_bhat(at)yahoo(dot)com> writes:
> hi all,
>
> Is it possible to store java Objects in postgres and
> invoke methods on them??. Is it possible to store XML
> in postgres?.
The answer to both your questions is "yes, but..."
Any Java object that implements Serializable can be serialized into a
byte stream, which can them be stored as a BLOB in Postgres. You
can't invoke methods on it in that form; you have to read it back in
and de-serialize it into a real object.
XML is text, and can be stored in Postgres like any other chunk of
text. To do anything with it, though, you'll need to read it back out
and parse it using SAX or another XML parser.
Hope this helps...
-Doug
From | Date | Subject | |
---|---|---|---|
Next Message | johnchildress | 2001-02-26 18:00:33 | Infinate Loop during gmake |
Previous Message | Doug McNaught | 2001-02-26 17:00:01 | Re: Problem with host connection |