Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kavitha Sundararaj
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic