Re: BinaryBody for ReturnRaw

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52509
interpreted = N
texte = When I use the complete code form the docs: http://webdna.smithmicro.com/ref/=20 pages.html?context=3DReturnRawContext.html I can get a file to download but it will not open - Acrobat thinks that =20= 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=3Darchived_orders/[DocNo].pdf[/text] > > **** Copy & Paste from the doc ***** > [!]Check if filename was passed in[/!] > [showif [getfile]!] > [text]line_ending=3D%0D%0A[/text] > > [!]Generate the response[/!] > [ReturnRaw binarybody=3D[getfile]]HTTP/1.0 200 =20 > OK[unurl][line_ending][/unurl][!] > [/!]Status: 200[unurl][line_ending][/unurl][!] > [/!]Content-Type: =20 > application/octet-stream[unurl][line_ending][/unurl][!] > [/!]Content-Disposition: attachment; =20 > filename=3D"[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 = =20 > browser window: > > %PDF-1.3 %=E2=E3=CF=D3 15 0 obj << /Linearized 1 /O 17 /H [ 1352 255 ] = /L =20 > 350063 /E 348732 /N 1 /T 349645 >> endobj xref 15 46 0000000016 00000 =20= > n 0000001267 00000 n 0000001607 00000 n 0000001813 00000 n 0000002057 =20= > 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 =20 > > 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/ 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)
When I use the complete code form the docs: http://webdna.smithmicro.com/ref/=20 pages.html?context=3DReturnRawContext.html I can get a file to download but it will not open - Acrobat thinks that =20= 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=3Darchived_orders/[DocNo].pdf[/text] > > **** Copy & Paste from the doc ***** > [!]Check if filename was passed in[/!] > [showif [getfile]!] > [text]line_ending=3D%0D%0A[/text] > > [!]Generate the response[/!] > [ReturnRaw binarybody=3D[getfile]]HTTP/1.0 200 =20 > OK[unurl][line_ending][/unurl][!] > [/!]Status: 200[unurl][line_ending][/unurl][!] > [/!]Content-Type: =20 > application/octet-stream[unurl][line_ending][/unurl][!] > [/!]Content-Disposition: attachment; =20 > filename=3D"[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 = =20 > browser window: > > %PDF-1.3 %=E2=E3=CF=D3 15 0 obj << /Linearized 1 /O 17 /H [ 1352 255 ] = /L =20 > 350063 /E 348732 /N 1 /T 349645 >> endobj xref 15 46 0000000016 00000 =20= > n 0000001267 00000 n 0000001607 00000 n 0000001813 00000 n 0000002057 =20= > 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 =20 > > 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/ 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:

TCPConnect to query for Domain expiration (2000) Saving Text Areas with Orders (1997) LineItem variable set (2007) NT - Thanks and Taxes (1997) No Data (1997) encrypted query string trouble on OSX (2001) Setting up shop (1997) Javascript Fields of Strawberry Roses and Green Bananas (2000) Emailed problem (2000) Absolute path (2003) Search in 2 or more catalogs (1997) Shopping Cart Limits? (1998) Mac Webcat 3.0.3b1 memory leak redirect inside search (1998) Database Locking?!? (2000) Pithy questions on webcommerce & siteedit (1997) same bill to and ship to? (1998) Multiple Domains with 1 Shopping Cart (2008) Great product and great job ! (1997) WebCat2b15MacPlugin - showing [math] (1997) WebCat Versions (2003)