> I have inserted a news in oracle db. its in the same
> format that I have posted. but the problem is, its
> displaying with no format. I used the <pre> tag but
> the page width becames a large and its displays each
> paragraph in each line
>
> Any suggestion please
>
> thanks in advance
My Sugestion is you can do encode/decode the news before insert to db or after read from db
> I mean
>
> 1. before insert your news to db, you could convert
> that news with encode method .
>
> 2. before you display your data, you can convert data
> from db wih
>decode method
> tp://ostermiller.org/utils/Base64.html
I tried Base64. it encodes but don't displays data in origional shape. it displays data like previous.
please get me any example
Well, Base64 encoding was a really stupid idea to solve your formatting problem. It was unfortunate you got sucked in by it. So forget about that.
And your problem really has nothing to do with JDBC. It seems to be "I have some text and I want to format it nicely in HTML. How do I do that?" Is that a good description?
> Well, Base64 encoding was a really stupid idea to
> solve your formatting problem. It was unfortunate you
> got sucked in by it. So forget about that.
>
> And your problem really has nothing to do with JDBC.
> It seems to be "I have some text and I want to format
> it nicely in HTML. How do I do that?" Is that a good
> description?
Don't bother, he's not going to get it.
http://forum.java.sun.com/thread.jspa?threadID=5148690&tstart=0
http://forum.java.sun.com/thread.jspa?threadID=5147584&start=15&tstart=0
http://forum.java.sun.com/thread.jspa?threadID=5145781&messageID=9546073#9546073
And there is much more grist for the mill, but his history doesn't run long enough to find the thread I'm thinking of in this instance.
Edit: Okay, I found a few of them:
http://forum.java.sun.com/thread.jspa?forumID=48&threadID=787085
http://forum.java.sun.com/thread.jspa?forumID=48&threadID=774107
http://forum.java.sun.com/thread.jspa?forumID=48&threadID=774092
Edit Again: Sorry, didn't notice (from the Base64 thread) that you had already noticed this.