• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding data from a word document to a web page  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was hoping to get some discussion going on how to take a word document, add to a database and then display the document on a web page with the formatting intact. I was thinking of creating a table with an image column and then display the image in a web page, but I'm not sure how to convert the word document into an image. The word document itself may include an image.

Any thoughts?

Thanks,
Gary
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use a library like Apache POI to read the doc file and its layout, and then create a web page that reflects that.

Or use OpenOffice in server mode to convert the DOC file into an HTML file. A library like JODConverter makes that a bit easier then it would otherwise be.
 
Gary Monk
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would you then take the converted doc and write to the database as a text data type?

Thanks for the help!

Gary
 
Ulf Dittmer
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I intended to use it as a file in its own right, I'd probably use the file system to store it. If it's just a piece of content that could be presented in different ways, I'd probably go for DB storage.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!