Hi,
Anyone know how to do the following:
- when i right click on a file whether in windows or linux the properties of the file comes up, i.e. name: x.jpg, Type: JPEG image, size: 30kb
- if i change the file extension of the file to x.png, the type: JPEG image remains the same i.e. Type: JPEG image
i have tried using javax.activation to get the mime type but this seems to work off the extension of the file
anyone know any library or example code?
Cheers,
Niall
Anyone know how to do the following:
- when i right click on a file whether in windows or linux the properties of the file comes up, i.e. name: x.jpg, Type: JPEG image, size: 30kb
- if i change the file extension of the file to x.png, the type: JPEG image remains the same i.e. Type: JPEG image
i have tried using javax.activation to get the mime type but this seems to work off the extension of the file
anyone know any library or example code?
Cheers,
Niall