Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help

Loading an image into the WebThumbnailViewer using the Open method

  •  09 Oct 2007, 4:16 PM

    Loading an image into the WebThumbnailViewer using the Open method

    Hi All,

      I have downloaded, and am using, the evaluation version of DotImage 5.0d SDK w/OCR.

    The web application that I am writing has some design constraints that I am trying to overcome.  I want the application to look and act like the demo application found here: http://www.atalasoft.com/ajaxviewer/  The thumbnails should be displayed along the left margin and the full image of the selected thumbnail should be displayed in the image control.  In the design of the application we can not have the images cached on the server ( So OpenUrl is not an option ).

     My web application has to be designed in such a way that we are retrieving images to a front end application via asynchronous methods for performance reasons.  So, when the Page_Load method is executed I don't have any images to load into the WebThumbnailViewer control.  The page is supposed to be rendered and the images should be loaded during a callback.

    I have this working to some degree...

    I have written a method (in C# - executed on the server) that is invoked by JavaScript in the web page via the [RemoteInvoke] hook in the WebImageViewer control.  The method gets the image and loads it into the WebImageViewer control by assigning a AtalaImage to the WebImageViewer.Image.  This part works fine.

    The problem that I am having involves adding that image to the WebThumbnailViewer.  When I add the line

    WebThumbnailViewer1.Open(ms); // ms is the memory stream which has the tiff image

    The image is not added to the Thumbnail viewer control.  I have not found any effective way of adding the image to the thumbnail viewer control at this point.

    I wonder - if there was a way to "RemoteInvoke" a method on the WebThumbnailViewer control would that solve my problem?

    Is there another way of doing this or perhaps someone has come across a solution to this problem?

    Thanks in advance!

View Complete Thread