mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
[bug-69628] more changes to getMax methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924993 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f91ff62a55
commit
f2179098fe
@ -48,7 +48,8 @@ public class XSSFPictureData extends POIXMLDocumentPart implements PictureData {
|
||||
* @return the max image size allowed for XSSF pictures
|
||||
*/
|
||||
public static int getMaxImageSize() {
|
||||
return MAX_IMAGE_SIZE;
|
||||
final int ioMaxSize = IOUtils.getByteArrayMaxOverride();
|
||||
return ioMaxSize < 0 ? MAX_IMAGE_SIZE : Math.min(MAX_IMAGE_SIZE, ioMaxSize);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user