How pyamf.amf3.ByteArray save to ImageField?

I'm getting object 'pyamf.amf3.ByteArray' How can I save it to ImageField ?


obj - an object in django, data - array which get from Flash application data['finalImage'] - a pyamf.amf3.ByteArray and contains image obj.image - an ImageField new_name - name for a picture (without path)

from django.core.files.base import ContentFile, ContentFile(data['finalImage'].read()))  

Need Your Help

SQL Server 2008 Update Trigger - Updating certain column approach

sql sql-server-2008 triggers

I'm creating a trigger on one table which should update date_modified column. Is below code the best approach to do this? Am I doing this right?

Evaluating strings using AND and OR operators

c# assignment-operator

Im creating a program that will only greet the person if named carley and zack.