79352585

Date: 2025-01-13 15:04:00
Score: 0.5
Natty:
Report link
  1. You don't need to set the MemoryStream position to get the byte array. That line can be removed.

  2. Don't use memoryStream.Position = 0. The correct way is:

// set Position at the beginning of the stream
memoryStream.Seek(0, SeekOrigin.Begin);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexandre