Scenario :-
I have case where I need to attach base64(huge string which is convert from file) through custom services
>>So in the pam methods I will receive the string .
>> And code to attachment in below
Code:-
Docuref docuref;
str fileName="test.pdf";
str notes="tesing";
str base64="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
using (System.IO.MemoryStream Stream = new System.IO.MemoryStream(System.
{
docuref=DocumentManagement::
}
If you stream file we can directly pass in the above logic.
No comments:
Post a Comment