Anyone who knows how to write a JavaFX image to an array of bytes (and vice versa)?
If possible, I don't want to load from or write to disk. I want to use the Image in memory (like Bitmap in B4A).
There are examples online but Image in JavaFX is not the same as in normal Java so it has to be treated differently (I think).
Perhaps BA already has a method for doing this?
Any help would be appreciated. Thanks.
If possible, I don't want to load from or write to disk. I want to use the Image in memory (like Bitmap in B4A).
There are examples online but Image in JavaFX is not the same as in normal Java so it has to be treated differently (I think).
Perhaps BA already has a method for doing this?
Any help would be appreciated. Thanks.