TWAIN ActiveX Control, Plug-in, Scanner SDK, Component, HTTP Control/SDK

Dynamsoft TWAIN Products

Support Community for TWAIN Control/Component/SDK for Scanning Solutions
* Login   * Register
* FAQ    * Search

It is currently Tue May 22, 2012 2:13 am




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: SaveSelectedImagesToBytes problem
PostPosted: Mon Jun 14, 2010 4:50 pm 
Offline

Joined: Mon Jun 14, 2010 4:34 pm
Posts: 2
Hi,

I need to obtain image data in javascript. I use the following code:

var size = aspnetForm.DynamicWebTwain1.GetSelectedImagesSize(0);
var ary = new Array(size);
var received = aspnetForm.DynamicWebTwain1.SaveSelectedImagesToBytes(size, ary);

However SaveSelectedImagesToBytes returns 0, and ErrorString is ''Invalid value". What are possible reasons of this error?


Top
 Profile  
 
 Post subject: Re: SaveSelectedImagesToBytes problem
PostPosted: Tue Jun 15, 2010 1:20 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi,

Please change your code to:

Code:
var size = aspnetForm.DynamicWebTwain1.GetSelectedImagesSize(0);
var ary = new Array(size);
for (var i =0; i<size; i++)
    ary[i] = 0;
aspnetForm.DynamicWebTwain1.SaveSelectedImagesToBytes(size, ary);

Please let me know how it works for you.

Thanks.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: SaveSelectedImagesToBytes problem
PostPosted: Wed Jun 16, 2010 3:56 am 
Offline

Joined: Mon Jun 14, 2010 4:34 pm
Posts: 2
Yes, it works. Thanks a lot.

And one more question. As I see, trial version has developer license and it doesn't work on server. Is there way to test distribution of the TWAIN ActiveX with trial?

In addition: ActiveX has been loaded and installed, but it shows error "Your Dynamic Web TWAIN serial number is invalid". All security settings are set to Enable or Promt, lpk file is generated and placed on server. Webbrouser is IE8


Top
 Profile  
 
 Post subject: Re: SaveSelectedImagesToBytes problem
PostPosted: Thu Jun 17, 2010 3:00 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi awm,

Quote:
Is there way to test distribution of the TWAIN ActiveX with trial?

Yes, you can deploy Dynamic Web TWAIN using the trial license. It's not limited.

Quote:
ActiveX has been loaded and installed, but it shows error "Your Dynamic Web TWAIN serial number is invalid".

Have you checked the following page for this error? If not, please take a look at it:
http://kb.dynamsoft.com/questions/45/Er ... is+invalid

If the issue persists, please contact us at livehelp:
http://www.dynamsoft.com/support/livehelp.aspx

Best.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

It is currently Tue May 22, 2012 2:13 am


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog