I need to detect the document type of the given file. I did it using magic numbers for pdf,RTF, doc files. but whenever I tried to do the same on odt and docx files, unfortunately, I can't because the magic number for both are same. Please help me to sort this issue. I need the answer programmatically in java Thanks in advance.
How to differentiate .odt and .docx file apart from magic number and extension
478 Views Asked by venkatesh karthick At
1
There are 1 best solutions below
Related Questions in FILE
- Helpt with reading files
- Why can't I use the file pointer after the first read attempt fails?
- Can't read the file using std::wifstream C++
- How can the scanner reread the entire file after it has already executed hasNextLine once?
- What is 'Invalid Load Key, '\x00'
- php $_FILE variable undefined index
- Data loaded from the file is not returned in the correct order
- File splitting and encryption
- Optimizing an s5cmd command that uses awk to generate a text file
- segmentation fault while reading in text file ( c++ )
- File.OpenText is adding C:\ to the front which is an error
- UTF-8 issue with excel
- How to upload files to MediaWiki APIs in Rust?
- No such file or directory: '/tmp/tmp_ejr26m6.upload.mp3' in Django
- Problems accessing zip files on the react front end from express backend
Related Questions in FILE-TYPE
- How to use file-type in Vue 3?
- Wordpress enable php filedownload for users
- nodejs 'file-type' and 'mime': require() of ES Module is not supported; change index.js to a dynamic import() which is available in CommonJS modules
- Micro services with Minio implementation
- How to automatically set Brotli encoding in Azure Blob storage?
- R proFIA "No MS1 data found in file" error using MSConvert-ed files
- MS-DOS D-Fend Reloaded file encoding "application/octet-stream; charset=binary" to ASCII in ubuntu
- Assign filetype to a software by script
- How can I upload .rvt (revit) files to Wordpress?
- .eml files not getting uploaded while sending it from email to databse
- How To Get Only Certain Object Types Back From Git LS-Files
- linux shell CLI file get mime-type from a string variable
- How do I solve the "is not a path to a .klc file" error in Windows PowerShell when running a klc to tfl file converter script?
- macOS document based app - save all documents as one
- What are the .rxxxxk .rxxxxl file extensions?
Related Questions in MAGIC-NUMBERS
- How can tzdata.zi file can be identified not as a .zi file Unambiguously?
- Is there a standard way to define a big list of "magic numbers" or parameters?
- What is the problem with assigning magic numbers to named structure members?
- python compiled bytecode `.pyc` not compatible with every versions. can we make it general? How to remove python magic number error?
- Jest magic number comparison failing in expect...toBe
- Preventing magic numbers used in firebase realtime database
- Fast inverse square root in python on float32
- Avoiding checkstyle MagicNumber error when filling object with magic numbers
- searches for files using the magic number of the file header
- Magic number in files Linux. C programming
- Should I declare a number as constant if it is passed as a parameter to a meaningful named function?
- How to check type of files using the header file signature (magic numbers)?
- Flutter: how to get magic numbers of file?
- how does a pointer becomes of adress 0xabababababababab or 0xfeeefeeefeeefeee?
- Where to add magic numbers in my project?
Related Questions in DOCUMENT-TYPES
- Custom file type is not showing "Open With"
- Determine SAP Document Type changes during the year
- How to differentiate .odt and .docx file apart from magic number and extension
- "Open In" should show my app in iPhones Camera Roll
- How to Open Document Picker on Button Click in React native
- Umbraco - Editable List view inside detail view of Document
- How to publish messages into Document Store in webmethods IS without broker
- Error Deleting Document Type
- Elasticsearch return all documents of a given type
- Cannot move members in Umbraco TypeError: contentResource.move is not a function
- Document Type Icon not showing on custom file MacOS
- Xamarin iOS: What are the document types for OpenOffice and Microsoft Office
- why are my gestures not being reconized when i enter my app via URL Shortcut (open pdf in my app)?
- Kentico & CMSForm: Load a different form after page load?
- "Open in" feature in Safari iOS 9 not working
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
What I just tried now :