我以字节数组的形式接收文件,并需要通过Outlook/Redemption将这些文件作为附件发送。safeMail.Attachments.Add(data, OlAttachmentType.olByValue, DisplayName:attachment.FileName);{"Could not convert variantof type (OleStr) into type (Double)"}
我假设是因为Add()方法需要一个变体数组
g.brand, g.price,g.goodsImage FROM Category c JOIN c.goods g WHERE g.user.userId=:userId and g.class=:type,Object[].class); query.setParameter("type", type.toUpperCase());
其中g.goodsImage是字节<e