wood burning stoves 2.0*
The moose likes JDBC 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
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
Don't get me started about those stupid light bulbs.
subject: ResultSet.getBytes()
Similar Threads
Bytes displaying for chinese characters
trouble reading japanese text file on windows2000 english
URLyBird's [Version 1.2.3] : delete flag
inflating UTF-8 ant Latin-1 compressed text
Problem in converting RAW data type to String