map image type to sql blob
interpret blob image