This URL file download Does not contain suffix :
how can I know its type in java Note: Google Chrome can know the link type does this help solve the problem by chrome.downloads.download or javascript
//===================================================
url = new URL(file.stringUrl);
urlConnection = (URLConnection) url.openConnection();
System.out.println(urlConnection.getContentLength());
String mimeType = urlConnection.getContentType(); //here error
System.out.println(mimeType);
urlConnection.connect();
//===================================================