use mediumblob instead of text
add raw column, send appropriate mimetype