Hi TLH,

I'm writing a FileUploadHandler that saves files into a Blob, hence I'm
using BlobProperty.

Will

On Tue, Jan 27, 2009 at 8:56 PM, TLH <tlhola...@gmail.com> wrote:

>
> from google.appengine.ext import db
>
> class Foo(db.Model):
>  b = db.BlobProperty()
>  def butWhy(self, s):
>    self.b = self.b + s
>
> f = Foo(
>  b = "Append to a Blob?"
>
> )
>
> f.butWhy(" You can, but why?")
>
> print f.b  # "Append to a Blob? You can, but why?"
>
> I suspect you should be using a Text property.
>
>
>
>
>
> On Jan 23, 11:20 am, Will <vocalster....@gmail.com> wrote:
> > Hi all,
> >
> > I'd like to append a byte string to a db.BlobProperty, but can't figure
> out
> > how. For example,
>
> > Any ideas? Thanks in advance.
> >
> > Will
> >
>

--~--~---------~--~----~------------~-------~--~----~
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-appengine@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