« Return to the blog entry
Jake -
I looked back in the code and was reminded that $file doesn't work. Here's what does (it was right next to a commented out line with $file...) :
url = urlThisDatabase() + "/0/" + doc.getUniversalID() + "/Body/M1/" + filename;
And here's the line that encodes the content...
body.setContentFromBytes(stream, "application/pdf", MIMEEntity.ENC_IDENTITY_BINARY);
About the name, you're right -- Jake is becoming more and more popular. That said, I'm actually James -- no one in my family can explain to me how the nickname makes any sense, but it stuck...
Jake -
I looked back in the code and was reminded that $file doesn't work. Here's what does (it was right next to a commented out line with $file...) :
url = urlThisDatabase() + "/0/" + doc.getUniversalID() + "/Body/M1/" + filename;
And here's the line that encodes the content...
body.setContentFromBytes(stream, "application/pdf", MIMEEntity.ENC_IDENTITY_BINARY);
About the name, you're right -- Jake is becoming more and more popular. That said, I'm actually James -- no one in my family can explain to me how the nickname makes any sense, but it stuck...