Hi Massimiliano,

Have you examined the example app in the documentation? This provides most
of what you need:
http://code.google.com/appengine/docs/python/blobstore/overview.html#Complete_Sample_App

The BlobRerefenceProperty provides the property you need to store a blob key
in the datastore:
http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#BlobReferenceProperty

-Nick Johnson

On Sun, Jun 20, 2010 at 9:41 PM, Massimiliano <
massimiliano.pietr...@gmail.com> wrote:

> Hi all,
> I can't understand the Blobstore. I have the lines below and I can upload
> files in the Blobstore:
>
> class ImgHandler(blobstore_handlers.BlobstoreUploadHandler):
> def post(self):
>  upload_files = self.get_uploads('img')
> self.redirect('/')
>
> Now I'm trying to show it to my users. How can I do it? I can't understand
> the Appengine Guide.
>
> I want to store a link to the image in the datastore in a DB Expando in
> order to have all in one place (link to the image,user name,...):
>
> class IMG(db.Expando):
> Date = db.DateTimeProperty(auto_now_add=True)
>
> In the HTML I want to have something like that:
>
> {% for img in immagini %}
> <img src="/serve/{{ img.link }}" />
>  {% endfor %}
>
>
> Can someone help me?
>
> Regards
>
> Massimiliano
>
>
> --
>
> My email: massimiliano.pietr...@gmail.com
> My Google Wave: massimiliano.pietr...@googlewave.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>



-- 
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to