public class BufferedImageByteArrayConverter extends Object implements TypeConverter<BufferedImage,byte[]>
Constructor and Description |
---|
BufferedImageByteArrayConverter() |
Modifier and Type | Method and Description |
---|---|
byte[] |
toDatastoreType(BufferedImage memberValue)
Method to convert the passed member value to the datastore type.
|
BufferedImage |
toMemberType(byte[] datastoreValue)
Method to convert the passed datastore value to the member type.
|
public byte[] toDatastoreType(BufferedImage memberValue)
TypeConverter
toDatastoreType
in interface TypeConverter<BufferedImage,byte[]>
memberValue
- Value from the memberpublic BufferedImage toMemberType(byte[] datastoreValue)
TypeConverter
toMemberType
in interface TypeConverter<BufferedImage,byte[]>
datastoreValue
- Value from the datastoreCopyright © 2018. All rights reserved.