Hi !
I've moved the code to a servlet now. The exception no longer occurs
- but the content of my excel-file is still displayed as text.
Currently I do:
response.setContentType(application/vnd.ms-excel);
OutputStream f = response.getOutputStream();
Is this the correct MIME-Type ? that's
]]
Gesendet: Montag, 28. Januar 2002 10:09
An: Tomcat Users List
Betreff: Re: BLOB FROM JSP PAGE
snip/
response.setContentType(application/vnd.ms-excel);
OutputStream f = response.getOutputStream();
Is this the correct MIME-Type ? that's the only one i've seen, that
has something to do
Hi !
It's me again. It works now. I had to toogle the order of getOutputStream()
and setContentType().
Greetings,
Dirk
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]
: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 8:19 PM
To: 'Tomcat Users List'
Subject: Recall: BLOB FROM JSP PAGE
Kemp Randy-W18971 would like to recall the message, BLOB FROM JSP
PAGE.
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands
Hi !
your example has inspired me to try to return an ms-excel document as
binary-result of a JSP.
I adopted the code previously provided as follows:
%@page import=java.io.BufferedInputStream,
java.io.ObjectOutputStream,java.io.OutputStream,java.io.File%
%
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 11:57 AM
To: Tomcat Users List
Subject: Re: BLOB FROM JSP PAGE
Hi !
your example has inspired me to try to return an ms-excel document as
binary-result of a JSP.
I adopted the code previously provided as follows
Your problem stems from (A) you can't call
response.getOutputStream
after you call response.getWriter and (B) all JSPs call
response.getWriter
before they start executing your code. Move the code to a
servlet and you
will be fine.
If you want to see more details about what Randy
On Fri, 25 Jan 2002 [EMAIL PROTECTED] wrote:
Date: Fri, 25 Jan 2002 17:57:05 +0100
From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: BLOB FROM JSP PAGE
Hi !
your example has inspired me to try to return an ms
Hello,
Is there a way to display images from database blob fields within only jsp,
i know that it is impossible because of you can not handle an another
outputstream
within jsp.
But this is a very critical for our application design.
sincerely ,
Ugur
PROTECTED]'
Subject: BLOB FROM JSP PAGE
Hello,
Is there a way to display images from database blob fields
within only jsp,
i know that it is impossible because of you can not handle an another
outputstream
within jsp.
But this is a very critical for our application design
Have you thought of using a servlet mapped to the file you are working with
(ie servlet mapping to *.jpg)? I haven't tried it, but in theory (this is
how I would do it if I had to), the servlet would catch the request, access
the info from the db and return the binary data. Since the client
Is there a way to display images from database blob fields within only
jsp,
i know that it is impossible because of you can not handle an another
outputstream
within jsp.
Your JSP needs to output an IMG tag with a 'src' that points back to your
application as another GET that will then
Of course you could try something like
%@page contentType=image/gif
%%@page import=java.io.BufferedInputStream,
java.io.ObjectOutputStream,java.io.OutputStream,java.io.File
%%
OutputStream f = response.getOutputStream();
File logo= new File(tester.gif);
BufferedInputStream bis = new
Have you looked at jspSmartUpload? There is a free version available.
-Original Message-
From: David Wall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 10:49 AM
To: Tomcat Users List
Subject: Re: BLOB FROM JSP PAGE
Is there a way to display images from database blob
Perhaps you may want to look at jspupload
-Original Message-
From: David Wall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 10:49 AM
To: Tomcat Users List
Subject: Re: BLOB FROM JSP PAGE
Is there a way to display images from database blob fields within only
jsp,
i know
Kemp Randy-W18971 would like to recall the message, BLOB FROM JSP PAGE.
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]
]]
Sent: Thursday, January 24, 2002 6:49 PM
To: Tomcat Users List
Subject: Re: BLOB FROM JSP PAGE
Is there a way to display images from database blob fields within only
jsp,
i know that it is impossible because of you can not handle an another
outputstream
within jsp.
Your JSP needs to output
, January 24, 2002 3:31 PM
To: 'Tomcat Users List'
Subject: RE: BLOB FROM JSP PAGE
but this means that i must create and send a second query to
a database
within in this servlet ,
rather then this
may be i can share my jsp page`s resultset to servlet,
do you have any idea to achive
On Thu, 24 Jan 2002, Mehmet Ugur Kuzu (LinkPlus) wrote:
Date: Thu, 24 Jan 2002 22:30:44 +0200
From: Mehmet Ugur Kuzu (LinkPlus) [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: BLOB FROM JSP PAGE
but this means
You can do this although it's not very common and I don't know as I
would recommend it.
Caveats:
- HTML 4.0 and up only
- Use object tag instead of img
- Still can't mix text and binary, your raw image data will have to be
converted to base64 or such either on the fly or in store.
see
but this means that i must create and send a second query to a database
within in this servlet ,
rather then this
may be i can share my jsp page`s resultset to servlet,
do you have any idea to achive this,
Even if you used a servlet, you cannot mix text output (the HTML of
21 matches
Mail list logo