Aspose Blank Check

Hi Team

I am looking to find is there any inbuilt method to check on the Input Stream is blank or not and to identify the type of the Stream .
Have used the below method to Identify but facing issue with the Tiff Streams .

Could you help on these

FileFormatInfo info = FileFormatUtil.detectFileFormat(inutstream);

FileFormatUtil.loadFormatToExtension(info.getLoadFormat())

@veera1208,

Which Aspose for Java API you are using? If you are talking about Aspose.Cells for Java, it does not support to detect image formats.

I am using the below thing to check on the Stream

import com.aspose.words.FileFormatInfo;
import com.aspose.words.FileFormatUtil;

Are there any other methods I can use to check on the stream type and Could you confirm on the methods available to check on the bank Streams as well please

@veera1208 You can pass a stream as an input into FileFormatUtil, but com.aspose.words.FileFormatUtil can detct only formats supported as load formats for Aspose.Words:
https://reference.aspose.com/words/java/com.aspose.words/loadformat/

Any method available to check on the blank Streams from the Aspose Library ?

@veera1208,

I think you might use Aspose.Imaging API to detect the image formats (including TIFF format) You might try the method Image.getFileFormat to detect the image format for your requirements. You may post your queries in Aspose.Imaging forum.