Re: file download + refresh

2022-09-02 Thread OCsite via Webobjects-dev
Thanks! Alas, although I do use my own poor-man's Ajax-like code (which actually predates Ajax :)) in some pages, in this particular case it would be sorta overkill. Having checked all the possibilities I've accepted (with a surprise) that such a trivial task is highly non-trivial :), and inste

file download + refresh

2022-09-01 Thread OCsite via Webobjects-dev
Hi there, thanks for previous answers, the JS solution works like a charm. Nevertheless, I've bumped into another problem: along with downloading the file (returning appropriate WOResponse from my action method), I would need to refresh the page as well, to increment a visible download counter

Re: JSConfirmPanel vs file download?

2022-08-31 Thread Michael Sharp via Webobjects-dev
Hi, Use ERXJSConfirmPanel. JSConfirmPanel uses a broken invokeAction implementation. Sharpy. > On 31 Aug 2022, at 11:34 pm, ocs--- via Webobjects-dev > wrote: > > Hi there, > > bumped into a weird problem. I allow users to download a file, pretty > standard code > > === > WOActionR

JSConfirmPanel vs file download?

2022-08-31 Thread ocs--- via Webobjects-dev
Hi there, bumped into a weird problem. I allow users to download a file, pretty standard code === WOActionResults downloadListing() { WOResponse wor=new WOResponse() wor.setHeader("application/pdf; name=\"Listing\"","content-type") wor.set

Re: WOResponse large http file download

2013-01-25 Thread Ramsey Gurley
You mean like -Xmx1024M -Xms256M It's even better in Java, as we get to specify permgen too :-P -XX:MaxPermSize=128m Lucky us! On Jan 25, 2013, at 1:46 PM, Pascal Robert wrote: > We can always go back to Mac OS Classic and have to set the max, min and > recommended amount of RAM for each app

Re: WOResponse large http file download

2013-01-25 Thread Pascal Robert
We can always go back to Mac OS Classic and have to set the max, min and recommended amount of RAM for each app? ;-P > 2GB should be enough for anyone. > > *ducks* > > Ramsey > > On Jan 25, 2013, at 12:49 PM, Helmut Tschemernjak wrote: > >> Hi Jürgen, >> >> we are using large downloads for s

Re: WOResponse large http file download

2013-01-25 Thread Ramsey Gurley
2GB should be enough for anyone. *ducks* Ramsey On Jan 25, 2013, at 12:49 PM, Helmut Tschemernjak wrote: > Hi Jürgen, > > we are using large downloads for some time with WO 5.4.3, it works, however > two things: > > a) We don't use Apache, instead we use DirectConnect > You can test this wit

Re: WOResponse large http file download

2013-01-25 Thread Helmut Tschemernjak
Hi Jürgen, we are using large downloads for some time with WO 5.4.3, it works, however two things: a) We don't use Apache, instead we use DirectConnect You can test this within a debug session in Eclipse this also uses the DirectConnect. b) The content size parameter needs to be limited

Re: WOResponse large http file download

2013-01-25 Thread Chuck Hill
IIRC, it was in WebObjects itself, using a Integer instead of a Long. I don't know if it is feasible to fix this in Wonder or not. Chuck On 2013-01-25, at 11:07 AM, Jürgen Tabert wrote: > A bug in mod_webobjects? > > On 25.01.2013, at 13:30, prob...@macti.ca wrote: > >> That's a unresolved

Re: WOResponse large http file download

2013-01-25 Thread Pascal Robert
No, in WOAdaptor. Check the "5.4 uploading large files" thread from June 2012 in the mailing list. > A bug in mod_webobjects? > > On 25.01.2013, at 13:30, prob...@macti.ca wrote: > >> That's a unresolved bug in WO 5.4... >> >> Envoyé de mon iPhone >> >> Le 2013-01-25 à 07:29, "Jürgen Tabert"

Re: WOResponse large http file download

2013-01-25 Thread Jürgen Tabert
A bug in mod_webobjects? On 25.01.2013, at 13:30, prob...@macti.ca wrote: > That's a unresolved bug in WO 5.4... > > Envoyé de mon iPhone > > Le 2013-01-25 à 07:29, "Jürgen Tabert" a écrit : > >> I did some tests using a 9GB file >> >> 1. Direct Access (Direct Action) works >> 2. download us

Re: WOResponse large http file download

2013-01-25 Thread probert
That's a unresolved bug in WO 5.4... Envoyé de mon iPhone Le 2013-01-25 à 07:29, "Jürgen Tabert" a écrit : > I did some tests using a 9GB file > > 1. Direct Access (Direct Action) works > 2. download using the htdocs folder (Apache 2.2) works > 3. download using mod_webobjects (Apache 2.2) fa

Re: WOResponse large http file download

2013-01-25 Thread Jürgen Tabert
I did some tests using a 9GB file 1. Direct Access (Direct Action) works 2. download using the htdocs folder (Apache 2.2) works 3. download using mod_webobjects (Apache 2.2) fails - only ~2GB gets downloaded Maybe there is a problem in the code of the apache module or I miss an configuration opt

Re: WOResponse large http file download

2013-01-24 Thread Fabian Peters
Hi Niek, I'm late to the party, but: Are you using Apache 1.3.X? I seem to remember that it has a relatively low size limit of its own. Fabian Am 21.01.2013 um 12:59 schrieb niek: > I tried this exact same code, and it doesn't work here. > The file does not get fully downloaded. I'm trying to

Re: WOResponse large http file download

2013-01-23 Thread Chuck Hill
Perhaps it is some networking limit local to you on http payload size? It does not sound like WebObjects is stopping it. "Exception while sending response: java.net.SocketException: Broken pipe" means that something stopped accepting the download from the application. Chuck On 2013-01-21,

Re: WOResponse large http file download

2013-01-22 Thread Jürgen Tabert
Download via Direct Access or Apache/mod_webobjects or something else On 21.01.2013, at 13:59, niek wrote: > I tried this exact same code, and it doesn't work here. > The file does not get fully downloaded. I'm trying to download a 7GB zip > file, and only 2.808.905 bytes (2.8GB) gets downloade

Re: WOResponse large http file download

2013-01-19 Thread Jürgen Tabert
works for me (DirectAction) WOResponse response = new WOResponse(); File fileToDownload = new File(po.filePath()); String contentDisposition = "attachment; filename=\"" + po.fileName() + "\""; response.setHeader(contentDisposition, "co

Re: WOResponse large http file download

2013-01-18 Thread niek
I also get a SocketException at the end of the download. 18/01/2013 11:27:07:597 [OFF] NSLog.java.appendln -> Exception while sending response: java.net.SocketException: Broken pipe I doesn't seem like a time-out problem because when I download the same file from different servers it downlo

Re: WOResponse large http file download

2013-01-18 Thread niek
New example code: public WOActionResults TestAction() throws java.io.FileNotFoundException { WOResponse response = new WOResponse(); response.setHeader("application/x-document", "content-type"); File file = new File("/test.zip"); response.setHeader("attachment

Re: WOResponse large http file download

2013-01-18 Thread Alexander Spohr
I think you are wrapping around maxint. Your example code is incomplete. It can not work... Am 18.01.2013 um 09:58 schrieb niek : > Hi all, > > I'm experiencing a problem when trying to download files larger than 4GB over > http but only a part is downloaded. > When I try to download a 32GB fi

WOResponse large http file download

2013-01-18 Thread niek
Hi all, I'm experiencing a problem when trying to download files larger than 4GB over http but only a part is downloaded. When I try to download a 32GB file, only 3,98GB (3980070495 bytes) is downloaded. When I try to download a 7GB file, only 2,7GB is downloaded. I have retried it several times

Re: File Download

2007-07-23 Thread Daniele Corti
2007/7/23, WILLIAM GARNETT <[EMAIL PROTECTED]>: Hello everyone; I need to make an XML file from my online database and be able to download it and have it saved on the user's disk. Can anyone tell me how this can be done please? Hi Bill, Look to create and manipulate XML in java, you have m

File Download

2007-07-23 Thread WILLIAM GARNETT
Hello everyone; I need to make an XML file from my online database and be able to download it and have it saved on the user's disk. Can anyone tell me how this can be done please? Cheers, Bill. ___ Do not post admin requests to the list. They w

Re: File download question

2006-02-03 Thread Amedeo Mantica
Ok! Thanks all you! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archi

Re: File download question

2006-02-03 Thread John Andersson
Set "inline;filename=", instead of "attachment;filename=" when you want the browser to show the data. If the browser support the mime-type it will show the image / pdf / textfile. /John 3 feb 2006 kl. 16.37 skrev Amedeo Mantica: works, thanks! but... now the browser always download the fil

Re: File download question

2006-02-03 Thread Robert Walker
Amedeo, Here is what I do. The explanation is in the header comments: http://homepage.mac.com/robertwalker1/.cv/robertwalker1/Sites/.Public/ FileDownloader.java-zip.zip On Feb 3, 2006, at 10:37 AM, Amedeo Mantica wrote: works, thanks! but... now the browser always download the file even if

Re: File download question

2006-02-03 Thread Amedeo Mantica
works, thanks! but... now the browser always download the file even if is a readable file... jpg, pdf... for my needs is ok...other solutions? Thanks Amedeo On 03/feb/06, at 15:56, Miguel Arroz wrote: Hi! Just add: response.setHeader("attachment;filename=" + filePath, "Content- Dis

Re: File download question

2006-02-03 Thread Miguel Arroz
Hi! Just add: response.setHeader("attachment;filename=" + filePath, "Content- Disposition"); Note that IE for Windows sends to the app the entire file path (C: \DocumentsAndSomething\BlaBlaBla\theFile.txt) instead of just the file name, as every other browsers does. You must take car

File download question

2006-02-03 Thread Amedeo Mantica
I people, I heve some files stoored into a DatabaseI store the FileName as String, the FileData as NSData anche the Mime type as String...Everything works fine...I have a WOComponent with this method to display/download the page public void appendToResponse(WOResponse response, WOContext context) {