Re: BLOB FROM JSP PAGE

2002-01-28 Thread Dirk . Dinger
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

AW: BLOB FROM JSP PAGE

2002-01-28 Thread Ralph Einfeldt
]] 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

Re: BLOB FROM JSP PAGE

2002-01-28 Thread Dirk . Dinger
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]

Re: Recall: BLOB FROM JSP PAGE

2002-01-25 Thread David Cassidy
: 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

Re: BLOB FROM JSP PAGE

2002-01-25 Thread Dirk . Dinger
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% %

RE: BLOB FROM JSP PAGE

2002-01-25 Thread Randy Layman
: [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

RE: BLOB FROM JSP PAGE

2002-01-25 Thread Michael Wentzel
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

Re: BLOB FROM JSP PAGE

2002-01-25 Thread Craig R. McClanahan
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

BLOB FROM JSP PAGE

2002-01-24 Thread Mehmet Ugur Kuzu (LinkPlus)
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

RE: BLOB FROM JSP PAGE

2002-01-24 Thread Randy Layman
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

Re: BLOB FROM JSP PAGE

2002-01-24 Thread David Smith
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

Re: BLOB FROM JSP PAGE

2002-01-24 Thread David Wall
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

Re: BLOB FROM JSP PAGE

2002-01-24 Thread David Cassidy
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

RE: BLOB FROM JSP PAGE

2002-01-24 Thread Kemp Randy-W18971
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

RE: BLOB FROM JSP PAGE

2002-01-24 Thread Kemp Randy-W18971
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

Recall: BLOB FROM JSP PAGE

2002-01-24 Thread Kemp Randy-W18971
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]

RE: BLOB FROM JSP PAGE

2002-01-24 Thread Mehmet Ugur Kuzu (LinkPlus)
]] 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

RE: BLOB FROM JSP PAGE

2002-01-24 Thread Randy Layman
, 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

RE: BLOB FROM JSP PAGE

2002-01-24 Thread Craig R. McClanahan
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

Re: BLOB FROM JSP PAGE

2002-01-24 Thread Roger Cuddy
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

Re: BLOB FROM JSP PAGE

2002-01-24 Thread Nikola Milutinovic
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