Example #1
0
def attachment_from_string(cls, value):
    return Attachment(data=value)
Example #2
0
 def return_binary_data():
     return Attachment(data=''.join([chr(i) for i in range(256)]))