Did anyone have a chance to look at this?

On Nov 11, 6:22 pm, "Paul Kukiel" <[email protected]> wrote:
> Here is the code I have been trying:
>
> <cfhttp url="http://www.google.com/logos/sesame_street_ensemble-hp.jpg";
> getasbinary="yes">
>
> <cffile action="write" file="g.jpg" output="#cfhttp.filecontent#">
>
> <cffile action="readbinary" file="g.jpg" variable="z">
> <cfdirectory action="list" name="list" directory="#expandPath('.')#"  />
>
> <cfdump var="#list#" />
>
> <cfloop query="list">
>         <cfoutput>#left(directory,50)# <br /></cfoutput>
>         <cfif right(name,4) eq ".jpg">
>                 <cfoutput><img src="#left(directory,50)##name#"><br
> /></cfoutput>
>                 <cfoutput><img src="#directory#/#name#"><br /></cfoutput>
>                 <cfoutput><img src="#right(directory,54)##name#"><br
> /></cfoutput>
>         </cfif>
> </cfloop>
>
> <cfabort />
>
> Now you might ask why I want to do this.  Well If a user wants to upload a
> picture or avatar from a URL I don't want to hot link it I want to save it
> on GAE and then refence "my" copy.  I've tried a few different options but
> not luck as yet.
>
> Anyone else want to have a try?
>
> Paul.
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of
>
> Vince Bonfanti
> Sent: Tuesday, November 10, 2009 11:00 AM
> To: [email protected]
> Subject: [OpenBD] Re: Open BD GAE VFS
>
> The CFDIRECTORY listing appears to be incorrect, so this could be a
> bug. Can you show me the code you're running?
>
> Vince
>
> On Mon, Nov 9, 2009 at 8:02 PM, Paul Kukiel <[email protected]> wrote:
> > I have OpenBD on GAE.
>
> > I used cfhttp to get a file ( picture.png ) I then used cffile to write
> this
> > to the VFS.
>
> > cfdirectory lists the file here:
>
> /base/data/home/apps/myapp/1.337642045380650872/gae:/base/data/home/apps/web
> sheppaul/1.337642045380650872
>
> > As z.png
>
> > How can I then reference that file so I can then use z.png as an image ie
> > <img src="somePath" />
>
> > Paul.
>
>
--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 mailing list - http://groups.google.com/group/openbd?hl=en

 !! save a network - please trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to