@Deprecated
public InputStream downloadThumbnail(final String fileId, final String extension, final BoxImageRequestObject requestObject) throws BoxRestException,
BoxServerException, AuthFatalFailureException {
ThumbnailRequest request = new ThumbnailRequest(getConfig(), getJSONParser(), fileId, extension, requestObject);
request.setAuth(getAuth());
DefaultBoxResponse response = (DefaultBoxResponse) getRestClient().execute(request);
if (response.getResponseStatusCode() != request.getExpectedResponseCode()) {
ErrorResponseParser errorParser = new ErrorResponseParser(getJSONParser());
Object o = errorParser.parse(response);
if (o instanceof BoxServerError) {
if (o instanceof BoxUnexpectedStatus) {
throw new BoxUnexpectedHttpStatusException((BoxUnexpectedStatus) o);