Did you try using DT_Bytes
instead of DT_Image
? The DB column type is VARBINARY right?
Not sure what you're storing in the string but it is unlikely to be something that you'd store in VARBINARY in the DB. I question this conversion in general. In many cases if you have binary data in a string then it is base64 encoded. Therefore you'd have to go through the intermediate step of decoding it first. If you don't then your binary data is wrong. Attempting to take a Unicode string and store it directly as binary in the DB would also make it effectively garbage unless somebody knew to convert it back to a string but that isn't going to work properly I believe.