aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ResultSet.getBytes() " Watch "ResultSet.getBytes() " New topic
Author

ResultSet.getBytes()

Mathias Nilsson
Ranch Hand

Joined: Oct 13, 2003
Posts: 107
Hi!
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.
ex


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: http://aspose.com/file-tools
 
subject: ResultSet.getBytes()