我想从sqlite3数据库中检索一个blob,并将其设置为我的图像视图的图像。
人员班级:
<Switch>
<Route path="/home" component={Home} />
<Route path="/foo" component={Foo} />
<Route path="/bar" component={Bar} />
<Redirect to="/home" />
</Switch>
}
包含所有获取器和PersonController类,我从数据库中获取信息并将它们存储在ObservableList中:
public Person (String name,int age,[]byte photo){
我设法在各自的列中设置了名称和年龄,但是我找不到在ImageView中显示照片的方法(没有将代码写到备用位置,但万一需要我可以提供)。任何帮助/建议表示赞赏