Re: INSERTINg a Clob in a portable way
- From: "joeNOSPAM@xxxxxxx" <joe.weinstein@xxxxxxxxx>
- Date: Tue, 14 Aug 2007 21:40:08 -0000
On Aug 14, 12:39 pm, Thomas Kellerer <FJIFALSDG...@xxxxxxxxxxxxx>
wrote:
joeNOS...@xxxxxxx wrote on 14.08.2007 21:26:>> What I did so far:
File f = new File("sourcfile.txt");
Reader r = new InputStreamReader(new FileInputStream(f), "UTF-8");
preparedStatement.setCharacterStream(1, r, f.length());
Hi. How about trying setBinaryStream() and send the data as raw bytes?
Joe
Hi Joe,
thanks for the answer, but this would only work if the file's encoding was the
same as the database's encoding.
Thomas
Well, yes, but I would separate the issues. If you have an encoding
that needs
conversion, do it explicitly at the client, and then store and send
the resulting
data as bytes.
.
- Follow-Ups:
- Re: INSERTINg a Clob in a portable way
- From: Thomas Kellerer
- Re: INSERTINg a Clob in a portable way
- References:
- INSERTINg a Clob in a portable way
- From: Thomas Kellerer
- Re: INSERTINg a Clob in a portable way
- From: joeNOSPAM@xxxxxxx
- Re: INSERTINg a Clob in a portable way
- From: Thomas Kellerer
- INSERTINg a Clob in a portable way
- Prev by Date: Re: INSERTINg a Clob in a portable way
- Next by Date: Re: INSERTINg a Clob in a portable way
- Previous by thread: Re: INSERTINg a Clob in a portable way
- Next by thread: Re: INSERTINg a Clob in a portable way
- Index(es):
Relevant Pages
|
|