Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

How to convert a byte array from ActiveX control to an Array object

Thread view: 
Lei Lei Shi - 26 Jul 2007 15:09 GMT
Hello Everyone,

In my javascript, an ActiveX control returns a byte array, say block. But by
any means I just can not access it. The typeof operator says its time is
unknown, any call to this object will fail, either toArray or toString. Of
course, indexing by [] will fail. Then I tried type casting in the way I
know:

var test = (Object) block;
var test = (Array) block;
var test = (byte[]) block;
var test = (Object[]) block;
var test = (String)block;

But seems javascript doesn't support casting in that way. So I tried to
contruct object from that:

var test = new Object(block);
var test = new Array(block);
var test = new String(block);

But none of above let me access the bytes inside the array.

Is there anyone successed in getting a byte array from an ActiveX control?

Thanks,
Lei Lei Shi
Lew - 26 Jul 2007 16:03 GMT
> Hello Everyone,
>
[quoted text clipped - 21 lines]
>
> Is there anyone successed in getting a byte array from an ActiveX control?

You will likely get the help you need in a Javascript newsgroup.

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.