See this thread on the ASCOM Developer forum. The template for Camera could use code for constructing ImageBytes format as described in Section 7 of the Alpaca API Reference. There is alrady ImageBytes support in the Alpyca client package, so the SDK should have code to go the other way.