Skip to content

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    I checked the article that you sent and noticed that they return the captured image as base64. You need to find a way to convert the base64 image's data to a standard Microsoft image that you can pass to the Image box control.
    If you have a valid image data in a base64String, you can create a memory stream object from this base64 data using the Convert.FromBase64String method. After this, you can create a valid system.drawing.image object using the Image.FromStream method. This should work with most cases.
    But in case you have a lot of files to deal with, you might need to compress your images to save space on disk. For this purpose, you might need to use a programming SDK (leadtools) which supports different types of compressions (JPEG, LZW, CCITTG4, etc).
    0