It is perfectly normal for DBs to display blob data in a hexadecimal format. When delivered in a query, it should actually be bytes.
You never did say why you need these as files on the gateway's disk. If you are going to be displaying these in Perspective, you'll need something like my Blob Server Module anyways, and it needs to pull from a DB.