File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes RichText Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 63866

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

[Asking smart questions] [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.

I agree. Here's the link:
subject: RichText
It's not a secret anymore!