0
 Followers
1
 Like

Email Input parameter as Binary

Backend
New

I think it would be a great addition if Email can accept Binary Data as input parameter. Currently it only support basic types.

Because normally emails are used to send attachment which would be in Binary Data. 

Of course you can do some aggregate in the Email preparation but I have faced situation where this is not possible. In complex architecture like different zoning deployment and to avoid circular dependencies.

So I ended up get data from aggregate then converting it to JSON then as text input parameter to Email then JSON  deserialize again using structure (no entity) to prevent cyclic dependency.

So I hope Email would just accept binary data as it is so it would be a lot simpler just to send attachment task.

Created on 11 Jul
Comments (2)

Changed the category to Backend


So I ended up get data from aggregate then converting it to JSON then as text input parameter to Email then JSON  deserialize again using structure (no entity) to prevent cyclic dependency.

Then make excel to record list form this "converted" aggregate then only able to create file and attach file.

If email can accept binary it would be a lot simpler that's the nature of emails to send text and binary as attachment.

views
52
Followers
0