This one is more tricky to implement, because it needs metadata like the mime/type to make the download work properly. This could be implemented with a class similar to HtmlContent, e.g. ByteStreamContent.
As it would covers a specific need and goes away from the JMX standard, it is not something that would come as a priority. But, again, feel free to try and submit a PR, I will surely merge it.