mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
Add mime data to restored image (#11962)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
parent
ef46e126b4
commit
0988c040a6
@ -480,6 +480,12 @@ public class JdbcBaseDAO {
|
||||
logger.debug("JDBC::storeItemValueProvider: DateTimeItem: '{}'", d);
|
||||
vo.setValue(d);
|
||||
break;
|
||||
case "IMAGEITEM":
|
||||
vo.setValueTypes(getSqlTypes().get(itemType), java.lang.String.class);
|
||||
String encodedString = item.getState().toFullString();
|
||||
logger.debug("JDBC::storeItemValueProvider: ImageItem: '{}'", encodedString);
|
||||
vo.setValue(encodedString);
|
||||
break;
|
||||
default:
|
||||
// All other items should return the best format by default
|
||||
vo.setValueTypes(getSqlTypes().get(itemType), java.lang.String.class);
|
||||
|
Loading…
Reference in New Issue
Block a user