A
Alexandr Molochnikov
I am struggling with the following problem: a Java program generates a
report which consists of a number of text strings, horizontal lines and
(possibly) images. All report elements have absolute position WRT the top of
the page. I need to convert the report to HTML format to either e-mail it,
or make it accessible over the Web.
Generating the necessary CSS constructs to set the fonts, text positions and
straight lines is not a problem. Handling the images is. They are stored in
a database as BLOBs, and although the Java program can recreate .jpeg or
..gif files for every image retrieved from the DB, the question (to me, at
least) is: how should the HTML content that includes images be saved? It
cannot go all into one file (HTML does not support embedding images' binary
data inside itself); should I create a temporary directory with separate
files for HTML and images so that it can be served over the Web? Is there
any way to stream the whole thing to a Web browser without saving it as
files first?
Any suggestion, especially from those who work in Java environment, will be
appreciated.
Alex Molochnikov
Gestalt Corporation
report which consists of a number of text strings, horizontal lines and
(possibly) images. All report elements have absolute position WRT the top of
the page. I need to convert the report to HTML format to either e-mail it,
or make it accessible over the Web.
Generating the necessary CSS constructs to set the fonts, text positions and
straight lines is not a problem. Handling the images is. They are stored in
a database as BLOBs, and although the Java program can recreate .jpeg or
..gif files for every image retrieved from the DB, the question (to me, at
least) is: how should the HTML content that includes images be saved? It
cannot go all into one file (HTML does not support embedding images' binary
data inside itself); should I create a temporary directory with separate
files for HTML and images so that it can be served over the Web? Is there
any way to stream the whole thing to a Web browser without saving it as
files first?
Any suggestion, especially from those who work in Java environment, will be
appreciated.
Alex Molochnikov
Gestalt Corporation