• Post Reply Bookmark Topic Watch Topic
  • New Topic

create a blob and wite blob to browsers  RSS feed

 
rao patwary
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I want to build a html text and write to string .Then i want to store the string as blob in oracle database. I wnat to retrive the blob and give excel extension and finnaly send it to browser.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37253
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rao,
Is there any part of this that you are having particular difficulty with? Also, as far as I know, excel doesn't open html documents.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BLOB implies bytes rather than characters. Since JSP is entirely oriented to making character pages, you should use a servlet to send byte data. In addition to the extension you would have to set content type and length headers. If you want Excel to read text, use comma delimited or tab delimited lines.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!