can I convert PdfFileMend object to byte array? and how?
I suggest you to try the following code and share your feedback.
MemoryStream stream = new MemoryStream(); mend.Save(stream); long bytes = stream.Length; BinaryReader reader = new BinaryReader(stream); byte bytearray = reader.ReadBytes((int)bytes);
thanks!! it’s helped me!
I use more shorted code:
MemoryStream stream = new MemoryStream();
byte requestDetailsByte = stream.ToArray();
It’s good to hear that things are working on your end.