Trying to grab an image from octoprint.
I have all the needed into it seems I need to combine the path
Help from the octoprint discord pointed me at this.
val imageUrl = "http://octopi:8080".toHttpUrl().newBuilder(file.thumbnail).build()
Tried a few things for the last hour or 2
I have all the needed info from the REST API call just cannot figure out how to combine them to a usable URL.
Anyway, just wonder if anyone could point me in a direction.
** FYI: I live in a city that is... Well the Internet is spotty at best (if it works at all) but that's another story for another place.
Forgive me if it takes a while for me to reply. **
I have all the needed into it seems I need to combine the path
Help from the octoprint discord pointed me at this.
val imageUrl = "http://octopi:8080".toHttpUrl().newBuilder(file.thumbnail).build()
Tried a few things for the last hour or 2
I have all the needed info from the REST API call just cannot figure out how to combine them to a usable URL.
Anyway, just wonder if anyone could point me in a direction.
** FYI: I live in a city that is... Well the Internet is spotty at best (if it works at all) but that's another story for another place.
Forgive me if it takes a while for me to reply. **