Re: BinaryBody for ReturnRaw

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52536
interpreted = N
texte = Some browsers are more particular about how attachments are described in the MIME headers. What happens when you test using different browsers? Netscape or IE on Windows? Older IE versions (4.x) did have a bug with regards to interpreting those MIME headers. -----Original Message----- From: Stuart Tremain [mailto:development@idfk.com.au] Sent: Wednesday, August 27, 2003 1:38 AM To: WebDNA-Talk@talk.smithmicro.com Subject: Re: BinaryBody for ReturnRaw When I use the complete code form the docs: http://webdna.smithmicro.com/ref/ pages.html?context=ReturnRawContext.html I can get a file to download but it will not open - Acrobat thinks that it corrupted ??? I am trying to get it work the same as in: http://webdna.smithmicro.com/whitepapers.html On Wednesday, August 27, 2003, at 06:04 PM, Stuart Tremain wrote: > Hi > > I am trying to get this to work: (new in WebDNA 5.1) > > [!]Initailize the getfile variable[/!] > [text]getfile=archived_orders/[DocNo].pdf[/text] > > **** Copy & Paste from the doc ***** > [!]Check if filename was passed in[/!] > [showif [getfile]!] > [text]line_ending=%0D%0A[/text] > > [!]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-Disposition: attachment; > filename="[getfile]"[unurl][line_ending][line_ending][/unurl][!] > [/!][/ReturnRaw] > > [/showif] > > > > I am serving off a PC, on my Mac OSX IE browser all I get is this in a > browser window: > > %PDF-1.3 %âãÏÓ 15 0 obj << /Linearized 1 /O 17 /H [ 1352 255 ] /L > 350063 /E 348732 /N 1 /T 349645 >> endobj xref 15 46 0000000016 00000 > n 0000001267 00000 n 0000001607 00000 n 0000001813 00000 n 0000002057 > 00000 n 0000002126 00000 n 0000002165 00000 n 0000002245 0000 > > Any ideas why the pdf is not being downloaded to my desktop ? > > > > 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/ > > 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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: BinaryBody for ReturnRaw ( Stuart Tremain 2003)
  2. Re: BinaryBody for ReturnRaw ( "Scott Anderson" 2003)
  3. Re: BinaryBody for ReturnRaw ( Stuart Tremain 2003)
  4. BinaryBody for ReturnRaw ( Stuart Tremain 2003)
Some browsers are more particular about how attachments are described in the MIME headers. What happens when you test using different browsers? Netscape or IE on Windows? Older IE versions (4.x) did have a bug with regards to interpreting those MIME headers. -----Original Message----- From: Stuart Tremain [mailto:development@idfk.com.au] Sent: Wednesday, August 27, 2003 1:38 AM To: WebDNA-Talk@talk.smithmicro.com Subject: Re: BinaryBody for ReturnRaw When I use the complete code form the docs: http://webdna.smithmicro.com/ref/ pages.html?context=ReturnRawContext.html I can get a file to download but it will not open - Acrobat thinks that it corrupted ??? I am trying to get it work the same as in: http://webdna.smithmicro.com/whitepapers.html On Wednesday, August 27, 2003, at 06:04 PM, Stuart Tremain wrote: > Hi > > I am trying to get this to work: (new in WebDNA 5.1) > > [!]Initailize the getfile variable[/!] > [text]getfile=archived_orders/[DocNo].pdf[/text] > > **** Copy & Paste from the doc ***** > [!]Check if filename was passed in[/!] > [showif [getfile]!] > [text]line_ending=%0D%0A[/text] > > [!]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-Disposition: attachment; > filename="[getfile]"[unurl][line_ending][line_ending][/unurl][!] > [/!][/ReturnRaw] > > [/showif] > > > > I am serving off a PC, on my Mac OSX IE browser all I get is this in a > browser window: > > %PDF-1.3 %âãÏÓ 15 0 obj << /Linearized 1 /O 17 /H [ 1352 255 ] /L > 350063 /E 348732 /N 1 /T 349645 >> endobj xref 15 46 0000000016 00000 > n 0000001267 00000 n 0000001607 00000 n 0000001813 00000 n 0000002057 > 00000 n 0000002126 00000 n 0000002165 00000 n 0000002245 0000 > > Any ideas why the pdf is not being downloaded to my desktop ? > > > > 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/ > > 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/ "Scott Anderson"

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:

Another question about credit cards (1997) Webcat XML/XSLT Performance vs. static Html (2006) Mac: LModelDirector bug fix (1997) handling cookies in and out of secure space (2000) [OT] Site Check please (2006) WCS Newbie question (1997) Appendfile memory usage (redux) (2003) webcat (2000) WebCatalog 3 for Macintosh (1998) Showing unopened cart (1997) Major Security Hole IIS NT (1998) Problems with [Search] param - Mac Plugin b15 (1997) Help name our technology! (1997) Re2: frames & carts (1997) how many tags? (2001) Running _every_ page through WebCat-error.html (1997) pc (1997) RFE: UNC path support in WebDNA 5.0 (2003) Giving out error pages (1997) emailer (1997)