If you are referring to an ESRI shapefile then this might help:
http://gis.stackexchange.com/questions/15920/how-to-convert-shapefile-geometries-to-wkb-using-ogr
If you are referring to an ESRI shapefile then this might help:
http://gis.stackexchange.com/questions/15920/how-to-convert-shapefile-geometries-to-wkb-using-ogr