like your server could serve your jpeg files directly, over https. Instead of as base64 chunks over a websocket.
If your use case is just to sign your jpegs, this is a very convoluted way to go about doing it.