At first, I created an API that returns a ByteArrayContent. It works well on the client-side when returning it as responseType: blob
responseType: blob
var options = {