We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a66131f commit 1146f6dCopy full SHA for 1146f6d
1 file changed
VideoServer/src/main/kotlin/CameraServer.kt
@@ -15,7 +15,8 @@ class CameraServer {
15
fun onAvailable(frame: ByteArray)
16
}
17
18
- private val deviceOfflineImage: ByteArray = File("device_offline.jpg").readBytes()
+ private val deviceOfflineImage = object {}.javaClass.getResource("/device_offline.jpg")?.readBytes()
19
+ ?: error("device_offline.jpg not found in resources!")
20
21
private val server = ServerSocket(4321)
22
0 commit comments