VBA Lotus Notes How to set MIME Encoding for SetContentFromBytes

Drawleeh

New Member
Joined
Sep 2, 2021
Messages
34
Office Version
  1. 2016
  2. 2010
Platform
  1. Windows
Hello, I haven't been able to find any resource to explain to me how I can set the encoding for the .SetContentFromBytes Lotus Notes MIMEEntity method. I am trying to declare base64, in the official documentation it shows ENC_BASE64 and therefore I have this
VBA Code:
Call MIMEDoc.SetContentFromBytes(Nstream, "application/pdf", ENC_BASE64)
Stepping through my code, when this line is run it over-writes any previous encoding with
VBA Code:
ENC_NONE

Question then, how do I correctly declare ENC_BASE64 encoding in the LotusNotes SetContentFromBytes MIMEEntity method?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
An old thread, but did you find the answer?

Try:

VBA Code:
MIMEDoc.SetContentFromBytes Nstream, "application/pdf", ENC_NONE
MIMEDoc.EncodeContent ENC_BASE64
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top