File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes ResultSet.getBytes() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "ResultSet.getBytes() " Watch "ResultSet.getBytes() " New topic


Mathias Nilsson
Ranch Hand

Joined: Oct 13, 2003
Posts: 107
I have a big problem. I'm trying to write data to an access 2000 db
using JDBC. So far I have succeded with inserting data.

When I'm about to print the data I use

It only prints '???A' and so on. How can I print the real data inserted via
an textarea? I don�t wan't to use getString() and setString() because length of the data is to long. I've tried it an it generates an odbc error by truncating the string.
I have tried using ( "ISO-8859-1" ) to but it still doesn't work.
Anybody know the solution to this problem?
// Mathias

SCJP2 , MCP( 70-229 ) , Preparing For SCWDC
Mathias Nilsson
Ranch Hand

Joined: Oct 13, 2003
Posts: 107
Hi all.
I solved it. If you use

// Mathias
I agree. Here's the link:
subject: ResultSet.getBytes()
It's not a secret anymore!