Packageorg.restfulx.utils
Classpublic class BinaryAttachment

BinaryAttachments work much the same way RxFileReferences do, except they allow you to attach arbitrary binary data to models instead of files. This is quite useful for things like screenshots, webcam output, etc.



Public Properties
 PropertyDefined by
  data : ByteArray
actual binary data to send
BinaryAttachment
  key : String
The key this attachment should be submitted under, can be things like "avatar", or "uploaded_data" or whatever user server expects as the variable
BinaryAttachment
  name : String
The name to use for this attachment (can be something like snapshot.png)
BinaryAttachment
Public Methods
 MethodDefined by
  
BinaryAttachment(name:String, key:String, data:ByteArray)
BinaryAttachment
Property detail
dataproperty
public var data:ByteArray

actual binary data to send

keyproperty 
public var key:String

The key this attachment should be submitted under, can be things like "avatar", or "uploaded_data" or whatever user server expects as the variable

nameproperty 
public var name:String

The name to use for this attachment (can be something like snapshot.png)

Constructor detail
BinaryAttachment()constructor
public function BinaryAttachment(name:String, key:String, data:ByteArray)Parameters
name:String
 
key:String
 
data:ByteArray