OK, so I need to get the Length of an Image created from a Memory Stream:
Dim memstrm As IO.MemoryStream = New IO.MemoryStream
Dim ticket As New Bitmap(1312, 574)
Dim ticketGraphics As Graphics = Graphics.FromImage(ticket)
ticketGraphics.FillRectangle(Brushes.White, 0, 0, 1312, 574)
When I do memstrm.Length this is NOT the Length I need.
The Length I need is 14584
I get the 14584 when I open the file using a FileStream...but how can I get this length so I don't have to save the file then open again?