How to determine if a file is 32 bits or 64 bits using Java APIs?
<p>I have a file which is getting uploaded (a *.wim file which can be either 32 bits or 64 bits- WAIK/WADK).</p>

<p>The wim file is copied to a location.</p>

<p>Earlier we had only 32 bit support, but now for UEFI purpose, we need to support both 32 bits (for BIOS) and 64 bits (for UEFI).</p>

<p>Now, after the upload is done, the intention is based on the file type, i will copy it to either the 32 bit or 64 bit folder.</p>

<p>How to discriminate it?</p>

<p>P.S: Removed the win tag as this is more a general determination of file type rather than the WIM.</p>
