Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting html output stored in database

 
clyde melly
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is the table html2long with the fields.
BP_IDENT
------------------------------------------
BP_DATA
----------
<html><body bgcolor="#cccfff"><input type="text" name="tt"/><br/></body></html>
106

My code :

The problem is that I get the acsii output for my longtohtml.html file.How do I Get
the text i.e the html file(<html><body bgcolor="#cccfff"><input type="text" name="tt"/><br/></body></html> ?
[ November 03, 2003: Message edited by: Gregg Bolinger ]
 
clyde melly
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C'mon kindly help.I'm expecting responses.Just make an effort.
 
clyde melly
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys please help me out.Its really urgent.no responses
 
Joe Ess
Bartender
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by clyde melly:

The problem is that I get the acsii output for my longtohtml.html file.?

Well, you are reading the data in int by int. What you are going to write to the file are ints (i.e. the ASCII value of each char). You should look into BufferedReader and Writer. More efficient than reading int by int and doesn't do the conversion. BufferedReader also has a handy readLine() method that returns a String.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by clyde melly:
C'mon kindly help.I'm expecting responses.Just make an effort.

Kindly don't make statements like this. There is no need. We are all volenteering here and we make the best effort we possibly can when we can. Plus, answers to your questions are not guarenteed. If no one knows, no one knows.
However, it might help if you would use the UBB Code Tags to format your code so that it is easier for everyone to read. I am editing your post so that you can see the difference. And it seems that you have been made aware of this before here. Yet you choose to ignor the request?
[ November 03, 2003: Message edited by: Gregg Bolinger ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic