如何检索 SOAP 附件?我正在做类似以下的事情:
Iterator<AttachmentPart> i = soapMessage.getAttachments();
while(i.hasNext())
{
AttachmentPart obj = i.next();
InputStream rawContent = obj.getRawContent();
}
原始内容返回如下内容:
------=_Part_2980_1570690085.1342564119748
内容类型:图片/png;名称=IMG_0583.png
内容传输编码:BASE64
内容处置:附件;文件名=IMG_0583.png
内容 ID:1
内容位置:IMG_0583.png
内容长度:11210
iVBORw0KGgoAAAANSUhEUgAAARMAAABfCAMAAAD8mtMpAAAC/VBMVEUBIrIZH6qfBSGwAyWSDiTE Aym9DifSCyysGCiQISvJES3eDDLMFinYGDDdFyzkGjbmGzGhMTePNjwsSa3JKDQYTukOZh3iKDKK
------=_Part_2980_1570690085.1342564119748--
如何检索上面以粗体突出显示的部分?