You can store files in a database as a byte array. I’ve attached sample project in which I use UploadFiled to upload a file to temporal local file storage and then convert loaded file to a byte array. Here is the code of uploading:
@Table(name = "STOREFILES_PERSON")
@Entity(name = "storefiles$Person")
public class Person extends StandardEntity {
...
@Column(name = "FILE_")
protected byte[] file;
public void setFile(byte[] file) {
this.file = file;
}
public byte[] getFile() {
return file;
}
...
}
We have plans to adding calendar component into the range of components, available by default, but there is no specific date when it will be done. For now, you can use Vaadin Calendar component as it is. You can have a look at the timesheets sample (it works only for full version of the Studio though) to see how to use Vaadin Calendar in CUBA project.