如何确保通过Java中的InputStream将byte []保存为jpg图像? [英]How to ensure that byte[ ] is saved as a jpg image through an InputStream in java?