1. A method for creating a binary code in an electronic device, the method comprising: confirming an image resource for an application, based on a request for creating a binary code for the application; determining an attribute for the image resource; selectively converting the image resource into a compressed texture, based on the attribute; and if the image resource is converted, creating the binary code for the application, based on the converted image resource.