This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes RichText Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "RichText" Watch "RichText" New topic


Vinod Kumar
Ranch Hand

Joined: Jan 18, 2002
Posts: 75

It will be great if some one can answer these questions.

i)How can we store a Rich Text (applet editor in browser) to a MS SQL server database in the same format which can be retrieved?
ii) How can we store a text in database which has images in some part of text? Example: This is a simley and I wonder !
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
What have you tried in the rich text? When you get the text out of the editing widget in your applet, it's a String like any other, no? Can you just stuff that in a varchar field?

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60788

As this seems to concentrate on the DB end of things, moved to the JDBC forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Arulanand Dayalan
Ranch Hand

Joined: Aug 10, 2005
Posts: 124
Use blob object to store the rich text and images.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: RichText
Similar Threads
Binary to string conversion
Store text file in MySQL
how to store an image into the DataBase using oracle database
JDBC can i connect
write java class for batch processing