aspose file tools*
The moose likes JDBC and the fly likes Need a solution to convert the object get from a database into a public key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Need a solution to convert the object get from a database into a public key" Watch "Need a solution to convert the object get from a database into a public key" New topic
Author

Need a solution to convert the object get from a database into a public key

Kavitha Sundararaj
Greenhorn

Joined: Nov 25, 2004
Posts: 1
Hi, friends,

run the following code:



Table structure in Access:

table name : table1
field name : pubkey ; Data type : OLE Object.

I want to put this key in Oracle/SQL Server. For that, I have to use BLOB, and ntxt respectively. It is not working here. Please try this in Oracle/SQL also.

Anyone give me the solution.

[edited to add code tags and disable smilies]
[ November 25, 2004: Message edited by: Jeanne Boyarsky ]
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30949
    
158

Kavitha,
Welcome to JavaRanch!


I think this is the root of the problem. Databases generally don't recognize objects. We usually get a binary stream and read it the object type we are looking for. Take a look at the ObjectInputStream and ObjectOutputStream classes.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need a solution to convert the object get from a database into a public key