Pega Robotic Studio: How to convert OpenSpan.Adapters.Web.Controls.Image object into System.Drawing.Image object
I am trying to implement OCR concept by using OneNote in Pega Robotic studio. Which i did. I am trying to read all images in a web page then trying to read text from it.
Here i stuck it gives me OpenSpan.Adapters.Web.Controls.ImageCollection proxy then OpenSpan.Adapters.Web.Controls.Image Image proxy. This image proxy doesnt have a method to save it local and not accepting in my script.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
I am not sure what you are asking. Since I don't know what your script does, I cannot suggest how to use it. The OpenSpan.Adapters.Web.Controls.Image does not have a Save method, so you cannot use that object natively to save it.
Thanks for your reply. I have done extracting text from image by using Microsoft.office.interop.onenote.dll in a script.
In the script i have used methods like createnewpage() , getcontents() of Microsoft one note dll.
I have completed extracting text from image that is ocr concept by choosing an image saved in local machine.
Now Assuming that i want to extract text from image which is in web page. I use Images property of webpage to get the collection of images. From that i can loop through each image. In order to use the image in my script either i need to save it first then converting into byte.
My question is openspan image control doesn't have save method , is there any way to use the image in picturebox or converting that image to byte..
Images property how can i exactly use it if i want to see the image ???