It depends a lot on the image format. For example, if you have a TIFF file, there is no a priori knowledge when EXIF data, if any, is inside the file. It can be right after the heading and before the first IFD, but this is unlikely. This may be after image data. Most likely, it is somewhere in the middle.
If you need EXIF information, extract it on the server (possibly a cache) and send it down, packed nicely, instead of requiring client code, do it.
source share