Re: Protecting Files (how to display vs. present a link to

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62283
interpreted = N
texte = If you display the image on a web page you will be able to see the path of the image. The whole idea of the ReturnRaw method is to stop anyone from seeing the path. I have come across an ASP method of displaying an image from a database, does anyone know about this ? Try as I might I cannot get a path for this image. I got this out of a product catalog Catalogue No. 2031VETF Stuart Tremain idfk web developments, sydney, australia On 20 Jun 2005, at 10:08 AM, eLists wrote: > Hello, > > Jesse Proudman wrote: > >> Here's the code I used: >> [ReturnRaw binarybody=path/to/file.zip][!] >> [/!]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="file.zip"[unurl] >> [line_ending][line_ending][/unurl][!] >> [/!][/ReturnRaw] >> You just need to replace path/to/file.zip with the path to the pdf >> and then filename="file.zip" with the name you want the user to see. >> > > Is there a way to have the image be displayed on the webpage vs. > having a link to the file to be downloaded? > > Thank you! > > > >> Thanks >> On Jun 10, 2005, at 10:59 AM, Clint Davis wrote: >> >>> I read the docs, but I'm not entirely clear on the process. Do >>> you have some code that you might share? >>> >> -- >> Jesse Proudman >> Blue Box Group, LLC >> p. +1.800.613.4305 x801 >> e. jesse@blueboxgrp.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 digest@talk.smithmicro.com> > 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: Protecting Files (how to display vs. present a link to ( "Mark Pace" 2005)
  2. Re: Protecting Files (how to display vs. present a link to ( eLists 2005)
  3. Re: Protecting Files (how to display vs. present a link to ( "Mark Pace" 2005)
  4. Re: Protecting Files (how to display vs. present a link to ( Stuart Tremain 2005)
  5. Re: Protecting Files (how to display vs. present a link to ( eLists 2005)
  6. Re: Protecting Files (how to display vs. present a link to ( Stuart Tremain 2005)
  7. Re: Protecting Files (how to display vs. present a link to ( eLists 2005)
If you display the image on a web page you will be able to see the path of the image. The whole idea of the ReturnRaw method is to stop anyone from seeing the path. I have come across an ASP method of displaying an image from a database, does anyone know about this ? Try as I might I cannot get a path for this image. I got this out of a product catalog Catalogue No. 2031VETF Stuart Tremain idfk web developments, sydney, australia On 20 Jun 2005, at 10:08 AM, eLists wrote: > Hello, > > Jesse Proudman wrote: > >> Here's the code I used: >> [ReturnRaw binarybody=path/to/file.zip][!] >> [/!]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="file.zip"[unurl] >> [line_ending][line_ending][/unurl][!] >> [/!][/ReturnRaw] >> You just need to replace path/to/file.zip with the path to the pdf >> and then filename="file.zip" with the name you want the user to see. >> > > Is there a way to have the image be displayed on the webpage vs. > having a link to the file to be downloaded? > > Thank you! > > > >> Thanks >> On Jun 10, 2005, at 10:59 AM, Clint Davis wrote: >> >>> I read the docs, but I'm not entirely clear on the process. Do >>> you have some code that you might share? >>> >> -- >> Jesse Proudman >> Blue Box Group, LLC >> p. +1.800.613.4305 x801 >> e. jesse@blueboxgrp.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 digest@talk.smithmicro.com> > 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/ 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:

Using .htaccess and ModRewrite - (was [OT] CSS and SSI (2004) Summing fields (1997) [search] in formulas.db (1997) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) truncating email part II (1997) PCS Frames (1997) WebStar Secure on other machine (1997) RE: Adding a product from another site (1997) Protect (1997) Image upload *CODE SAMPLE* (2000) WebCat2: Formulas.db question (1997) Remote Administration (1998) Checkboxes (1997) Search returns all, not 20 (1997) HTML Editors (1997) error -43 (1998) [random] only for 1-100??? (1997) For those of you not on the WebCatalog Beta... (1997) japanese characters (1997) Emailer Q (2002)