I am using java mail to get emails from gmail with attachments, the attachment come as String in the content, how I can convert it to file?
Thanks
this what I got
Content :
begin 644 myfile.csv
M(E-T871U<R(L(E-T87)T(BPB4W1A<G0@9&%T92(L(E-T87)T('1I;64B+")%
M;F0B+")%;F0@9&%T92(L(D5N9"!T:6UE(BPB0V%L;&EN9R!C=7-T;VUE<B(L
.................
end
Object content = message.getContent();
if (content instanceof String) {//here I got the attachment
System.out.println(content);
} else if (content instanceof Multipart) {
Multipart multiPart = (Multipart) content;
procesMultiPart(multiPart);
}