Right, but it doesn't accept a mime type like "image/png", it accepts a file encoding like "utf8" or "binary". I suspect you want "binary" here, but testing is needed.