Ben Olden-Cooligan

Results 199 comments of Ben Olden-Cooligan

@AndyP2 Please open a [new thread](https://github.com/cyanfish/naps2/discussions/new?category=support) as that's a different completely different scanner/driver.

[NAPS2.Sdk](https://github.com/cyanfish/naps2/tree/master/NAPS2.Sdk) is a work in progress that will provide a .NET library for scanning. This could be used to build a service like that.

It's not in my plans - maybe someday but there are a lot of higher priority things for me. If anyone else wanted to build such a thing on top...

I've published a first [alpha version](https://www.nuget.org/packages/NAPS2.Sdk) of the SDK so you should be able to use that. There might be an issue though where you might need to set `ScanOptions.TwainOptions.Dsm...

Sorry yes that message needs updating. I would recommend using the nugets, not sure how easy it would be to get the exe working otherwise. Instructions are here https://github.com/cyanfish/naps2/blob/master/NAPS2.Sdk.Samples/TwainSample.cs

If you look at the sample I linked it explains, see here: https://github.com/cyanfish/naps2/blob/master/NAPS2.Sdk.Samples/TwainSample.cs Specifically you just need to call `scanningContext.SetUpWin32Worker()`.

That should work but I would recommend this (which avoids using the GDI-specific Bitmap type): ``` private string processedImageToBase64(ProcessedImage processedImage) { var stream = processedImage.Render().SaveToMemoryStream(ImageFileFormat.Jpeg); return Convert.ToBase64String(stream.ToArray()); } ``` I'll...

Yeah that would be tougher, you might need to do something like have the server be stateful (e.g. store the images or scanning state in a static session variable and...

I would recommend creating your own project.

Cool, that's great! And good to see the SDK is already getting some use. I would suggest adding a license file to the project. If you like you can use...