Re: BinaryBody problem ......
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52567
interpreted = N
texte = This works to an extent, it still seems to corrupt pdf files and a couple of gif files I tested.The gif file looked as if its content was cut short - may be something to do with the two Content-Length headers.A couple of small text files were OK.On Friday, August 29, 2003, at 06:12 AM, Scott Anderson wrote:> Doooh!>> Okay, my bad. I am seeing the same problem when using the BinaryBody> feature to invoke downloads of larger files.>> The Windows build of 5.1 does not calculate the Content-Length MIME > header> correctly when the BinaryBody feature is used. I am fixing this now. > Wierd> that is worked for smaller files. The UNIX builds are not affected.>> For now, you can try adding the Content-Length header in your code. > Like> this:>> [!]Generate the response[/!]> [ReturnRaw binarybody=[getfile]]HTTP/1.0 200> OK[unurl][line_ending][/unurl][!]> [/!]Status: 200[unurl][line_ending][/unurl][!]> [/!]Content-Type: > application/octet-stream[unurl][line_ending][/unurl][!]> [/!]Content-Length: [fileinfo> file=[getfile]][size][/fileinfo][unurl][line_ending][/unurl][!]> [/!]Content-Disposition: attachment;> filename="[getfile]"[unurl][line_ending][line_ending][/unurl][!]> [/!][/ReturnRaw]>>> Of course, the browser will receive two Content-Length headers; the > one you> insert, and the one the engine creates automatically. I tested this > change,> and my browser seemed to handle larger downloads just fine.>> This 'BinaryBody Content-Length' bug will be fixed for the Windows 5.1> patch.>> -----Original Message-----> From: Stuart Tremain [mailto:development@idfk.com.au]> Sent: Wednesday, August 27, 2003 9:13 PM> To: WebDNA-Talk@talk.smithmicro.com> Subject: BinaryBody problem ......>>> Any ideas re my previous posts ?>>>> Regards>> Stuart Tremain> idfk web developments> 114a/40 yeo street neutral bay 2089 australia> t +612 9908 2134> f +612 9908 4837>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://webdna.smithmicro.com/>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/>>RegardsStuart Tremainidfk web developments114a/40 yeo street neutral bay 2089 australiat +612 9908 2134f +612 9908 4837-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
This works to an extent, it still seems to corrupt pdf files and a couple of gif files I tested.The gif file looked as if its content was cut short - may be something to do with the two Content-Length headers.A couple of small text files were OK.On Friday, August 29, 2003, at 06:12 AM, Scott Anderson wrote:> Doooh!>> Okay, my bad. I am seeing the same problem when using the BinaryBody> feature to invoke downloads of larger files.>> The Windows build of 5.1 does not calculate the Content-Length MIME > header> correctly when the BinaryBody feature is used. I am fixing this now. > Wierd> that is worked for smaller files. The UNIX builds are not affected.>> For now, you can try adding the Content-Length header in your code. > Like> this:>> [!]Generate the response[/!]> [ReturnRaw binarybody=[getfile]]HTTP/1.0 200> OK[unurl][line_ending][/unurl][!]> [/!]Status: 200[unurl][line_ending][/unurl][!]> [/!]Content-Type: > application/octet-stream[unurl][line_ending][/unurl][!]> [/!]Content-Length: [fileinfo> file=[getfile]][size][/fileinfo][unurl][line_ending][/unurl][!]> [/!]Content-Disposition: attachment;> filename="[getfile]"[unurl][line_ending][line_ending][/unurl][!]> [/!][/ReturnRaw]>>> Of course, the browser will receive two Content-Length headers; the > one you> insert, and the one the engine creates automatically. I tested this > change,> and my browser seemed to handle larger downloads just fine.>> This 'BinaryBody Content-Length' bug will be fixed for the Windows 5.1> patch.>> -----Original Message-----> From: Stuart Tremain [mailto:development@idfk.com.au]> Sent: Wednesday, August 27, 2003 9:13 PM> To: WebDNA-Talk@talk.smithmicro.com> Subject: BinaryBody problem ......>>> Any ideas re my previous posts ?>>>> Regards>> Stuart Tremain> idfk web developments> 114a/40 yeo street neutral bay 2089 australia> t +612 9908 2134> f +612 9908 4837>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://webdna.smithmicro.com/>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/>>RegardsStuart Tremainidfk web developments114a/40 yeo street neutral bay 2089 australiat +612 9908 2134f +612 9908 4837-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Stuart Tremain
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
multiple credit card merchant accounts/processors (1997)
PCS Frames (1997)
Interesting speed comparison .. (2003)
That Flakey 'Brawl' thing (1997)
WebCommerce: Folder organization ? (1997)
newcart (1997)
WebCat2: Found Items syntax, etc. (1997)
Math Context (1998)
rn (range) (2003)
Founditems Add/remove graphic display problem (1999)
[WebDNA] =?windows-1252?Q?=5BWebDNA=5D_WebDNA=3A_Could_not_establish_conn?= (2012)
[OT] JavaScript Error (2002)
OPEN MARKET PATENTS SOUND ECOMMERCE ALARM (1998)
BUG REPORT: Delete context ignores max parameter (1998)
[OT] 'Email this story to a friend' (2003)
Verbose error reporting (1998)
[sendmail] possible modification needed... (2000)
Universal db access template ... (2002)
If Empty ? (1997)
WebCatalog can't find database (1997)