Package com.vonage.client
Interface BinaryRequest
public interface BinaryRequest
Indicates that a class used for request is to be serialised as binary data (e.g. for uploads).
- Since:
- 7.10.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringThe MIME type header for this request to use as theContent-Type.byte[]Serialises this request to a byte array.
-
Method Details
-
toByteArray
byte[] toByteArray()Serialises this request to a byte array.- Returns:
- The binary data for this request.
-
getContentType
The MIME type header for this request to use as theContent-Type.- Returns:
- The request MIME type as a string.
-