I have explored the issue and found that there is a condition in DataResourceWorker method to render content of 'text' mime type only, for others it returns exception.
// if the target mimeTypeId is not a text type, throw an exception
throw new GeneralException("The desired mime-type is not a text type, cannot render as text: " + targetMimeTypeId);
We can fix this by setting up mimeTypeID as null in request param
I have added the patch with the changes and also test the same for all contents, kindly share your thoughts on this.