This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static AlternateView ContentToAlternateView(string content) | |
{ | |
Stream Base64ToImageStream(string base64String) | |
{ | |
byte[] imageBytes = Convert.FromBase64String(base64String); | |
MemoryStream ms = new MemoryStream(imageBytes, 0, imageBytes.Length); | |
return ms; | |
} | |
var imgCount = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
namespace PMITPUMP | |
{ | |
class Program | |
{ | |
private static HttpClient httpClient {get;} = new HttpClient(); |