get content type from byte array java