This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Sheriff
Posts: 37230
519
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!