This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring 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: 34071
331
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic