Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
91 views
in Technique[技术] by (71.8m points)

java - How to get byte type content from a list using Comma separated list

This is my Json for emailAttachment.

"emailAttachmentModel": [
{
"webId": 1201,
"clientId": 592571,
"emailId": 1001,
"key": "Test Key",
"location": "Test Location",
"name": "Test.txt",
"content": "VkdocGN5QnBjeUJoSUhSbGMzUWdkR1Y0ZENCQmRIUmhZMmh0Wlc1MERRcFVhR2x6SUdseklHRWdkR1Z6ZENCMFpYaDBJRUYwZEdGamFHMWxiblFOQ2xSb2FYTWdhWE1nWVNCMFpYTjBJSFJsZUhRZ1FYUjBZV05vYldWdWRBMEtWR2hwY3lCcGN5QmhJSFJsYzNRZ2RHVjRkQ0JCZEhSaFkyaHRaVzUwRFFwVWFHbHpJR2x6SUdFZ2RHVnpkQ0IwWlhoMElFRjBkR0ZqYUcxbGJuUU5DZz09"
 },
 {
 "webId": 1202,
 "clientId": 592571,
 "emailId": 1001,
 "key": "Test Key",
 "location": "Test Location",
 "name": "Test2.txt",
 "content":"VkdocGN5QnBjeUJoSUhSbGMzUWdkR1Y0ZENCQmRIUmhZMmh0Wlc1MElESU5DbFJvYVhNZ2FYTWdZU0IwWlhOMElIUmxlSFFnUVhSMFlXTm9iV1Z1ZENBeURRcFVhR2x6SUdseklHRWdkR1Z6ZENCMFpYaDBJRUYwZEdGamFHMWxiblFnTWcwS1ZHaHBjeUJwY3lCaElIUmxjM1FnZEdWNGRDQkJkSFJoWTJodFpXNTBJRElOQ2xSb2FYTWdhWE1nWVNCMFpYTjBJSFJsZUhRZ1FYUjBZV05vYldWdWRDQXlEUW89"
 },
 {
 "webId": 1203,
 "clientId": 592571,
 "emailId": 1001,
 "key": "Test Key",
 "location": "Test Location",
 "name": "Test3.txt",
 "content": "VkdocGN5QnBjeUJoSUhSbGMzUWdkR1Y0ZENCQmRIUmhZMmh0Wlc1MElETU5DbFJvYVhNZ2FYTWdZU0IwWlhOMElIUmxlSFFnUVhSMApZV05vYldWdWRDQXpEUXBVYUdseklHbHpJR0VnZEdWemRDQjBaWGgwSUVGMGRHRmphRzFsYm5RZ013MEtWR2hwY3lCcGN5QmhJSFJsCmMzUWdkR1Y0ZENCQmRIUmhZMmh0Wlc1MElETU5DbFJvYVhNZ2FYTWdZU0IwWlhOMElIUmxlSFFnUVhSMFlXTm9iV1Z1ZENBekRRbz0="
 }
 ]

Now the data I am storing in content object is of Base64 and i am getting this data in the code is like:

private byte[] content;

Now i want to get all the 3 contents of the 3 emailAttachments as something like COMMA SPERATED SRTING or BYTE.

question from:https://stackoverflow.com/questions/65900693/how-to-get-byte-type-content-from-a-list-using-comma-separated-list

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...