We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89fd0f6 commit 26995efCopy full SHA for 26995ef
grails-app/services/au/org/ala/ecodata/forms/EcpWebService.groovy
@@ -627,7 +627,10 @@ class EcpWebService {
627
responseData = objectMapper.readValue(responseData, Object)
628
}
629
} else {
630
- responseData = responseBody.byteStream()
+ // This is only used for the /document/createThumbnail endpoint. Because the thumbnail is small we
631
+ // can get away with reading the entire response into memory. If dealing with large files
632
+ // we might have to remove the try with resources and handle the stream manually.
633
+ responseData = responseBody.bytes()
634
635
636
result.statusCode = result.status = response.code()
0 commit comments