Interface MendixBinary
- All Superinterfaces:
- IMendixObjectMember<InputStream>
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.mendix.systemwideinterfaces.core.IMendixObjectMemberIMendixObjectMember.MemberState, IMendixObjectMember.MemberValueState
- 
Method SummaryModifier and TypeMethodDescriptionvoidcommitValueAsFileDocument(IContext context) Deprecated.As of Mendix 8.11.getContentType(IContext context) Return Content-Type.Return ETag.getFileName(IContext context) Return file name.Deprecated.As of Mendix 8.11.Returns the length of the stored binary data.Provide access to the specified range of bytes of the value.voidparseAndStoreValue(IContext context, String value) Deprecated.As of Mendix 8.11.voidretrieveValue(IContext context, OutputStream out) Retrieve value and write to output stream.voidDeprecated.As of Mendix 8.11.voidDeprecated.As of Mendix 8.11.voidstoreValue(IContext context, InputStream value, long length) Set the value the given input stream up to the length.Methods inherited from interface com.mendix.systemwideinterfaces.core.IMendixObjectMemberequals, getMemberValueState, getName, getOriginalValue, getState, getValue, getValueFromString, hashCode, hasReadAccess, hasWriteAccess, isVirtual, parseValueFromString, parseValueToString, setValue, setValue, toString
- 
Method Details- 
getValueProvide access to the specified range of bytes of the value. Support for partial reading is experimental, not all implementations of MendixBinary support it.- Parameters:
- context- the context.
- start- the beginning position.
- length- the number of bytes to read.
- Returns:
- the stream for the requested range
- Since:
- 8.13.0
 
- 
setValueDeprecated.As of Mendix 8.11. UseIMendixObjectMember.setValue(IContext, Object)orIMendixObjectMember.setValue(IContext, Object, boolean)directly.Set value to passed byte array.
- 
retrieveValueRetrieve value and write to output stream.
- 
storeValueSet the value the given input stream up to the length.
- 
parseAndStoreValueDeprecated.As of Mendix 8.11. UseIMendixObjectMember.setValue(IContext, Object)orIMendixObjectMember.setValue(IContext, Object, boolean)directly.Set the value to the bytes in the given string.
- 
commitValueAsFileDocumentDeprecated.As of Mendix 8.11. This method is for internal use only.Commit the current value as file document.
- 
setLengthDeprecated.As of Mendix 8.11. This method should not be used.Set the length of the value.
- 
getLengthDeprecated.As of Mendix 8.11. UsegetLength(IContext)instead.Get the length of the binary value if set previously.
- 
getLengthReturns the length of the stored binary data. If the underlying entity has a length field then its permissions apply. If not, the permissions of the content attribute are applied.- Returns:
- the length of the stored binary data or null if the length is unknown
 
- 
getContentTypeReturn Content-Type.- Returns:
- the binary's content type if known, null otherwise
 
- 
getFileNameReturn file name.- Returns:
- the binary's file name if known, null otherwise
 
- 
getETagReturn ETag.- Returns:
- an ETag for the binary, getETag should never return null
 
 
-