File Download

2000-01-18 Thread Larry Hoffman
tream.close(); } catch(IOException e){} out.close(); The problem in the file download dialog box. from Internet Explorer. When the servlet starts the download I get the following description: You have chosen to download a file from this location "...Updates?OasisEdit.1.4.0.3.zip from

File Download...

2000-03-20 Thread Loganathan, Kamalesh
Hello All, I've a problem in forcing the Browser to open the File Download dialog for saving a file onto the desktop. I've a jsp which interacts with a datastore (cached data from db) and saves the data in a file. I use 'SendRedirect' to point the location of the file to do

File Download

2002-02-27 Thread Shaik Zulfakhar Ali
Hi All, Can anyone guide me how can i accomplish a Download file facility through JSP or Servlet? I will be thankful if you suggest any link . Thanks & Regards Zulfakhar ==To unsubscribe: mailto [EMAIL PROTECTED] with

File Download

2004-05-26 Thread Jayprakash_Gonella
Hi, I hope I can post this question in this forum! In our application we have a functionality that the end users can download file from the server. The extension of the file is .EXP. Upon testing this functionality, we are not seeing the "File Download" box. Rather the "file&qu

Re: File Download

2000-01-18 Thread Craig R. McClanahan
gt; while((i = finStream.read()) != -1) > { > out.write(i); > } > finStream.close(); > } > catch(IOException e){} > > out.close(); > > The problem in the file download dialog box. from Internet Explorer. When > the se

Re: File Download

2000-01-18 Thread Stephen Summerfield
> -Original Message- > From: A mailing list about Java Server Pages specification > and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Larry Hoffman > > The problem in the file download dialog box. from Internet > Explorer. When > the servlet starts the down

Re: File Download...

2000-03-20 Thread Shannon Moschetti
l Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Loganathan, Kamalesh Sent: Monday, March 20, 2000 9:56 AM To: [EMAIL PROTECTED] Subject: File Download... Hello All, I've a problem in forcing the Browser to open th

Re: File Download...

2000-03-20 Thread Lee Elenbaas
The browser pops up the file download for mime types it doesn't know how to handle or to mime type that have specified that file downloading should happen. In any case this is a client configuration. If you can control the mime type of the file, try change it to something that doesn't

Re: File Download...

2000-03-20 Thread Robert Bivins[SWIT CONTRACTOR]
Kamalesh, I'm not sure what you are using to initiate the file download, but if you are running an application, script, or servlet, just set the PATH_INFO environment variable to what you want the filename to be and the download dialogue box will show up. If it's a script, just appe

Re: File Download

2004-05-26 Thread Rommel Sharma
Hi, Similar Fle Download issue is addressed before on various sites. Please check out JGuru: http://www.jguru.com/faq/view.jsp?EID=252010 that says: --- Assuming that you want to save the file as "myFile.txt" you have to set the Content-Disposition response Header as follows : response.setHeader("

Jsp and file download

2000-09-16 Thread Maciej Tylczyński
Hi All I try to write code that downloads file from jsp but always after I use response.getOutputStream() I get IllegalStateException : 'OutputStream is already being used for this request' What can I do about it ? Thanks for any suggestions. Regards Maciek ==

problem with file download

2000-10-05 Thread Maciej Tylczyński
Hello I use the scriplet shown below for downloading files. When it's text file all is seems to be ok, but zip file is always corrupted. I changed contentType ( response.setContentType("application/zip"); ) but it didin't help. What is wrong ? Can anybody help ? Maciek <% Strin

JSP - File Download Problem

2000-10-18 Thread Srinivasan Raghavendran
When I try to download a file thru jsp, in (Internet Explorer 5.0) the open dialog box appears TWICE. 1. You have chosen to download file from this location ... "download.jsp from ' 2. You have chosen to download file from this location... "file.txt" Any reason why this happens? It works fine with

File Download & MIME Types

2001-02-08 Thread St. Louis, Thomas (CRD)
s IE launches the viewer for the MIME type if known. I visit sites all the time that display a File Download dialog box when you select to an HTTP download of file. Any help and insight is appreciated. Thanks, Tom > g GE Corporate Research &

File Download in JSP

2001-09-06 Thread Smita Kotnis
Hi all, I want to download a file from server to client's local disc. What is the way to do this? I am trying to use, Jsp smart upload class for downlod (Which says there is a method to download too), but is giving me error that, "this page cannot be displayed" any ideas how to go ahe

Re: problem with file download

2000-10-05 Thread Narasimha, Goli (c)
length. like response.setContentLength((int)fileLen + 2); I hope this will work. Tx Goli. -Original Message- From: Maciej Tylczynski [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 05, 2000 7:05 AM To: [EMAIL PROTECTED] Subject: problem with file download Hello I use the

Re: problem with file download

2000-10-05 Thread Ken Chu
lt;[EMAIL PROTECTED]> Sent: Thursday, October 05, 2000 4:05 AM Subject: problem with file download > Hello > > I use the scriplet shown below for downloading files. > When it's text file all is seems to be ok, but zip file is always corrupted. > I changed contentType

Re: problem with file download

2000-10-05 Thread Craig R. McClanahan
Maciej Tylczyñski wrote: > Hello > > I use the scriplet shown below for downloading files. > When it's text file all is seems to be ok, but zip file is always corrupted. > I changed contentType ( response.setContentType("application/zip"); ) but it > didin't help. > There are two basic i

ODP: problem with file download

2000-10-06 Thread Maciej Tylczyñski
Thanks with servlet it woks much better :) Regards Maciek === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/pr

file download with different name ?????

2001-03-20 Thread sufi malak
In my page downloads, I have lot of liks for files to be downloaded bu the user like: Download without jspsmart And then when the user download a file and update it, he will go back to a page for uploading that file. right now everything is working fine, BUT if TWO users downloads the same file up

File download problem with JSP

2000-05-29 Thread Eric Butler
I am trying to send a downloaded word document through a jsp. When the document is bigger than about 20K, part of it is missing. Can't tell whether it's the end or the beginning that is getting cut off. The junk.getDoc() return a string that's just the reading of a file input stream. The stran

File Download in JSP(Urgent)

2001-09-06 Thread Smita Kotnis
hi all, Please any one suggest me how to download a file from server? I want to save the file directly to client's local disk with out opening the dialog box... Any suggestions? Any freely available classes for this purpose? Please help Regards Smita --

Problem with CSV File download !

2002-02-19 Thread It, Cockpit (CAP, Contractor)
Hi Guys, I have a problem, my application should give a template of some format. Which is going to be a CSV file. So I am using response.setContentType("application/csv"); response.setHeader("Content-Disposition","attachment; filename=UPLOAD.csv;"); When I tried this the download was very fine w

Re: file download with different name ?????

2001-03-20 Thread Clayton Nash
;[EMAIL PROTECTED]> Sent: Tuesday, March 20, 2001 4:31 PM Subject: file download with different name ? > In my page downloads, I have lot of liks for files to be downloaded bu the > user like: > Download without jspsmart > And then when the user download a file and update it, he

Re: file download with different name ?????

2001-03-20 Thread sufi malak
t about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: file download with different name ? >Date: Tue, 20 Mar 2001 17:46:20 - > >It's called version management -- one option is to lock files once they >

File download utility using JSP/JavaBeans?

2001-05-16 Thread Bernard Gaughran
Hello, I am looking for an easy way in JSP / JavaBeans to send the binary contents of PDF and image files to a user's browser to allow them to download them as complete files. If the user's browser supports opening, for example, the PDF, then I would like the browser to open it up on-line. What'

Re: File download problem with JSP

2000-05-29 Thread D. J. Hagberg
The fundamental problem here is that a .doc file is a *byte* stream, not a character-oriented text document. You are seeing the effects of character set translation and possibly truncation and probably some problems due to null characters (though Java should not have any prob. with this). You ne

Re: File download problem with JSP

2000-05-30 Thread Fernando Ribeiro
> I have also tried changing the getDoc to return an array of bytes and > trying to morph that back into a valid file but I failed. You should do that. A .doc file cannot be represented by arrays of characters since they are binary data. > Here's the code. I've tried multiple permutations of com

Re: File Download in JSP(Urgent)

2001-09-06 Thread Sushanto Pandit
Smita, Without a dialog BOX thats a security breach... HREF that document/file you wish to download Sush === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PRO

Re: File Download in JSP(Urgent)

2001-09-06 Thread Smita Kotnis
Hi, Thanks for your reply. but, if I give href to that document, it will open that document, right? My requirement is a bit different. I want to download multiple files on click of a button from server to client's local disc. The directory where the files are to be copied is hard coded. Is

Re: File Download in JSP(Urgent)

2001-09-06 Thread Richard Yee
Smita, To answer your question, "Is there a way for a JSP to download multiple files with a single click to a hardcoded location on the client's machine?" No there isn't. As the previous responder mentioned, it would be a security breach. Imagine if you could download an autoexec.bat file and

Re: File Download in JSP(Urgent)

2001-09-06 Thread Smita Kotnis
Hi Richard, I completely agree with your point. I am sorry, I have not thought in these lines. Actually the requirement was, out of some files, if client selects some of files and press download, they should come to his hard drive so that he can cut a cd with these files. Thanks for

File download dialog box pop up twice

2002-09-29 Thread Myo Myint Oo
Hello, I am facing a problem dowloading a file from servlet. Everything work well, except that the dialog box (asking saving or open file) popup twice when I choose to open file option. Saving is ok, the dialog box open only 1. Any body have the idea to suggest me? Thanks Myo file = new Fi

Help - Servlet/JSP file download to client pc

2000-05-26 Thread Brian Harvey
Im trying to convert some older HTML pages that download dynamically generated data from the server to a pc. Im using JDK1.1.7a and JSP 0.9 for converting. Any help on where I can find an example of how to do this, or what is a good way to implement in a JSP/Servlet? The data being downloaded

Re: File download dialog box pop up twice

2002-09-30 Thread Clayton Nash
: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]] On Behalf Of Myo Myint Oo Sent: 30 September 2002 07:29 To: [EMAIL PROTECTED] Subject: File download dialog box pop up twice Hello, I am facing a problem dowloading a file from servlet. Everything work

Re: File download dialog box pop up twice

2002-10-02 Thread Davindar Gill
Did any one find a solution to this ? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servle

Cursor remains an hour glass after file download in JSP app

1999-10-26 Thread Jay White
BufferedInputStream in = new BufferedInputStream(new FileInputStream(file)); BufferedOutputStream dataOut = new BufferedOutputStream(response.getOutputStream()); int b = 0; while ((b = in.read( )) != -1) { dataOut.write(b); } in.close(); dataOut.close(); %> The File Download dialog opens.

Cursor remains an hour glass after file download in JSP app

2000-06-23 Thread Pawan Nachnani
(int)file.length()); BufferedInputStream in = new BufferedInputStream(new FileInputStream(file)); BufferedOutputStream dataOut = new BufferedOutputStream(response.getOutputStream()); int b = 0; while ((b = in.read( )) != -1) { dataOut.write(b); } in.close(); dataOut.close(); %> The File Do

Re: Cursor remains an hour glass after file download in JSP app

2000-06-23 Thread Hans Bergsten
t; File file = new File("e:\\download\\Foo.xml"); //Known Directory. > > response.setContentLength((int)file.length()); > > BufferedInputStream in = new BufferedInputStream(new FileInputStream(file)); > BufferedOutputStream dataOut = new > BufferedOutputStream(response.getOutputSt

Re: Cursor remains an hour glass after file download in JSP app

2000-06-23 Thread sun_king
putStream dataOut = new > > BufferedOutputStream(response.getOutputStream()); > > > > int b = 0; > > while ((b = in.read( )) != -1) { > > dataOut.write(b); > > } > > in.close(); > > dataOut.close(); > > > > %> > > >