def filer_image_from_data(request, path, file_name, file_data, sha1=None):
 if (sha1 is True):
  sha1 = hashlib.sha1(file_data).hexdigest()
 upload_data = ContentFile(file_data, file_name)
 return _filer_file_from_upload(model=Image, request=request, path=path, upload_data=upload_data, sha1=sha1)

def filer_image_from_data ( request , path , file_name , file_data , sha1 = None ) : if ( sha1 is True ) : sha1 = hashlib . sha1 ( file_data ) . hexdigest ( ) upload_data = ContentFile ( file_data , file_name ) return _filer_file_from_upload ( model = Image , request = request , path = path , upload_data = upload_data , sha1 = sha1 )
create a filer image from the given data string .