We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storing the data is a two step process.
You must find the correct sensor in the database first.
Sensor sensor = em.find(Sensor.class, "the-sensor-id"); Data data = new Data(from, to, sensor); em.persist(data);
Helpfull classes:
After the sensor is persisted, you have to copy the files to the harddrive.
ISensor sensorInstance = ... // from sensorManager, not db instance! Data data = new Data(from, to, sensor); try (InputStream in = sensorInstance.getDataInputStream()) { // data.toPath() gets the harddrive path Files.copy(in, data.toPath()); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Storing the data is a two step process.
Create a Data instance
You must find the correct sensor in the database first.
Helpfull classes:
Copy files
After the sensor is persisted, you have to copy the files to the harddrive.
The text was updated successfully, but these errors were encountered: