How to insert byte[] array with ORMlite into image column
===

A subtask of my webservice is to save a file (along with some meta data) in a database.  
The webservice is based on [ServiceStack](http://servicestack.net) and its version of [ORMlite](http://ormlite.com).  
<br />
So I've created a small class which represents the attachment in the database:

<!-- language: lang-cs -->

    public class Attachment {
        public string Description { get; set; }
        public string FileName { get; set; }
        public string Type { get; set; }
        public byte[] Data { get; set; }
    }

And here is the actual file

<!-- language: lang-cs -->

    MemoryStream ms = new MemoryStream(webclient.DownloadData(...));
    byte[] data = new byte[...];
    ms.Read(data, 0, data.Length);

    Attachment file = new Attachment() {
        /* all the other stuff */
        Data = data
    };

No problems until now... :)  
<br />
Now I have all I need to put this file into database. So lets get it on...

<!-- language: lang-cs -->

    dbCmd.Insert<Attachment>(file);

<br />
And there is the problem...

    SqlException: "Operand type clash: text is incompatible with image"
<br />
ORMlite transforms the byte array into a base64 encoded string

<!-- language: lang-sql -->

    /* stripped-down example of the command string */
    INSERT INTO Attachment (Data) VALUES ('CgoKCgoKCjxodG1sPgo8a...AAAA==')

<br />
I've searched all day long but did not find a solution to change the way ORMlite handles `byte[]` arrays. There is no attribute `DatabaseField` which I could use to set the `dataType` to `BYTE_ARRAY` as it is possible in Java.

<!-- language: lang-java -->

    @DatabaseField(dataType = DataType.BYTE_ARRAY)
    byte[] imageBytes;

<br />
Have I missed something essential?  
Is there another way of getting the file into the database?