Hi guys,
I'm trying to extract the Contact UserPhoto and save it as jpeg bitmap image. The closest I've gotten to be successful until now was using DDocument.generateXML. Sample:
DDatabase session.getDatabase database = ("snmb05/Mercantil of Brazil", "names.nsf"); DDocument database.getDocumentByID doc = (Key); System.out.println (doc.generateXML ());
The System.out result was a huge xml plain text, wich contains the following item:
<item name='UserPhoto'><richtext> <pardef id='4' leftmargin='1in' rightmargin='100%'/> <par def='4'><picture width='230px' height='284px'><jpeg> /9j/4AAQSkZJRgABAQEAYABgAAD/4QNyRXhpZgAASUkqAAgAAAALAA8BAgADAAAASFAAABABAgAR AAAAkgAAABoBBQABAAAApAAAABsBBQABAAAArAAAACgBAwABAAAAAgAAABMCAwABAAAAAgAAABQC BQAGAAAAtAAAAGmHBAABAAAA/AIAAAmkAwABAAAAAAAAAAqkAwABAAAAAAAAAAukBwAYAgAA5AAA AAAAAABIUCBTY2FuamV0IEc0MDUwAADIAAAAAQAAAMgAAAABAAAAAAAAAAEAAAD/AAAAAQAAAIAA AAABAAAA/wAAAAEAAACAAAAAAQAAAP8AAAABAAAAAQATACAgIDBBMCAgIDdBMCAgIDhBMEhQU0kw MDAyAAAgIDExQTAgICAwQTAgICAwQTAgICAgICAgMAAAICAyMUEwICAgMEEwICAgMEEwICAgICAg IDAAACAgMzFBMCAgIDBBMCAgIDBBMCAgICAgICAwAAAgIDMyQTAgICAwQTAgICAwQTAgICAgICAg MAAAICA0MUEwICAgMEEwICAgMEEwICAgICAgIDAAACAgNDJBMCAgIDBBMCAgIDBBMCAgICAgICAw AAAgIDQzQTAgICAwQTAgICAwQTAgICAgICAgMAAAICA0NEEwICAgMEEwICAgMEEwICAgICAgIDAA ACAgNTFBMCAgIDBBMCAgIDBBMCAgICAgICAwAAAgIDYxQTAgICAxQTAgICAxQTAgICAgICAgMAAA ICA2MkEwICAgMEEwICAgMEEwICAgICAgIDAAACAgNjNBMCAgIDBBMCAgIDBBMCAgICAgICAwAAAg IDY0QTAgICAwQTAgICAwQTAgICAgICAg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+9 5TKoHUtyK4HQYP8Aibz5Hyoh/mBXomtxqlk4UYyCTXD6IgM18/fa386S2Zpuc3rsHn6hcMF4UdPf muclXcVHOM4PFd1cRoYWbaMlAxOOpJrlLuNY7mUL2cgV2UZXVjlrqzMxoyAe/f6U4jcS7HLdc46n rVmZQZynQFwDj3qIAYAHp/Wug5mQMCSHUD2HvUo3BSOdu7oDxShBtz9KcqA5HPPHWgEPeDYVYAcn pnpViE7uh5U55qCEfd69KsFQGzzx70mAm/cxBPB+U5rotEP2rT7q0Y4bYXXnuBjIrBuQCEO0D5c8 Vo+H5GW7bB/hx+grOovdua0H756z4IuvtXh+E5+dBsbn0AorJ8ByMr3MAPyctj3yKK5lI9Gx/9k= </jpeg></picture></par></richtext></item>
Can someone help and explain me how to convert this richtext embendded photo to a jpg image?
Thanks
Log in to post a comment.
Hi guys,
I'm trying to extract the Contact UserPhoto and save it as jpeg bitmap image. The closest I've gotten to be successful until now was using DDocument.generateXML. Sample:
DDatabase session.getDatabase database = ("snmb05/Mercantil of Brazil", "names.nsf");
DDocument database.getDocumentByID doc = (Key);
System.out.println (doc.generateXML ());
The System.out result was a huge xml plain text, wich contains the following item:
<item name='UserPhoto'><richtext>
<pardef id='4' leftmargin='1in' rightmargin='100%'/>
<par def='4'><picture width='230px' height='284px'><jpeg>
/9j/4AAQSkZJRgABAQEAYABgAAD/4QNyRXhpZgAASUkqAAgAAAALAA8BAgADAAAASFAAABABAgAR
AAAAkgAAABoBBQABAAAApAAAABsBBQABAAAArAAAACgBAwABAAAAAgAAABMCAwABAAAAAgAAABQC
BQAGAAAAtAAAAGmHBAABAAAA/AIAAAmkAwABAAAAAAAAAAqkAwABAAAAAAAAAAukBwAYAgAA5AAA
AAAAAABIUCBTY2FuamV0IEc0MDUwAADIAAAAAQAAAMgAAAABAAAAAAAAAAEAAAD/AAAAAQAAAIAA
AAABAAAA/wAAAAEAAACAAAAAAQAAAP8AAAABAAAAAQATACAgIDBBMCAgIDdBMCAgIDhBMEhQU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ajcMhIOF4yFJ5+n1qMyM7c455xnFUSTqu5ScAbMjrg/l+P+eaaGwemfx6UwOSxLdD
155qYoNgK7hzmmIU/MOc7vUelP5dYwo7D8aZGE8z5uRjPXH4VdhRCw7DsSOtJghLctHMHzz1B969
b8Layt7pkayNmVAFbPqBXk7AJNznGevoK6nQ73+zvLm6xSHYxA6GsKqvqdeGnZnq9ou66dj8yquB
9Tg/4UUzRSssDSDkP836Cis0dknqdAq/u1HtQRwQKlIBSgKMVoTc5XxP4cTVolliYw3kPMUydR14
PqPauRF5e6bfwrqsTo4Bj85eVZT0/UV6nKBtPHauc1q1hnspkkQMCpPI6HB5qJI1psyLK6RbW2ud
4JWRgxzzgtmuqgmWZQVyQR1rj/DtpDJpxkZc5mI2np27fjXZwRpCmyNQqhRgDoKiJdSxOFEilCAQ
eooCBHUHBOepHOPSnRjBpZeNpHrVtGDJhtI4AqtMpK/RqlgOUB9eaSbmP/gQoewhsa04qMcUIMCp
ABkVzIyY0DGKcU9KkRQSc+tPA7VaJuVWTvVW5VSoz3q1Iv78NubG37vaq1woKmpY0cnrTEW95t+9
5TKoHUtyK4HQYP8Aibz5Hyoh/mBXomtxqlk4UYyCTXD6IgM18/fa386S2Zpuc3rsHn6hcMF4UdPf
muclXcVHOM4PFd1cRoYWbaMlAxOOpJrlLuNY7mUL2cgV2UZXVjlrqzMxoyAe/f6U4jcS7HLdc46n
rVmZQZynQFwDj3qIAYAHp/Wug5mQMCSHUD2HvUo3BSOdu7oDxShBtz9KcqA5HPPHWgEPeDYVYAcn
pnpViE7uh5U55qCEfd69KsFQGzzx70mAm/cxBPB+U5rotEP2rT7q0Y4bYXXnuBjIrBuQCEO0D5c8
Vo+H5GW7bB/hx+grOovdua0H756z4IuvtXh+E5+dBsbn0AorJ8ByMr3MAPyctj3yKK5lI9Gx/9k=
</jpeg></picture></par></richtext></item>
Can someone help and explain me how to convert this richtext embendded photo to a jpg image?
Thanks