I've been tasked with creating an application to allow scanning of documents and saving them to a SQL Server database so they can be queried/reviewed on demand.
I've managed to modify code I've found online to scan the documents using GDI+, and successfully saved the scanned image to a file - but I really need to get it into a byte array.
The GdipSaveImageToStream appears to be what I need, but I don't know how to derive a pointer to the MemoryStream variable in VB.NET.
Any help/pointers would be greatly appreciated.
I've managed to modify code I've found online to scan the documents using GDI+, and successfully saved the scanned image to a file - but I really need to get it into a byte array.
The GdipSaveImageToStream appears to be what I need, but I don't know how to derive a pointer to the MemoryStream variable in VB.NET.
Any help/pointers would be greatly appreciated.