Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Convert.FromBase64String from JScript on Internet Explorer

Thread Tools

Convert.FromBase64String from JScript on Internet Explorer

Posts: n/a
Hi, I have a MS Word binary data file that is sent from my .NET
webservice in response to an XMLHTTP request from an Internet Explorer
client. This data has to be base64 encoded to tunnel through a

I've used the .NET Convert.ToBase64String() method to encode the
data. I understand that the Convert.FromBase64String only runs on the
server. How can I decode the data using jscript that's running on
the browser?

I've tried several RFC based algorithms written in JScript that seem
to only decode the text portions of the data. They seem to fail
decoding the binary parts of the file. When I open the file in Word,
the file conversion wizard pops up, although when I scroll through the
file all the text portions of it seem to be intact.

Does anyone know the algorithm used by
Convert.ToBase64String/Convert.FromBase64String so that I can emulate
the decoding it uses on the internet explorer side?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Explorer 8: C:\Program Files\Internet Explorer\iexplore.exe vs C:\Program Files (x86)\Internet Explorer\iexplore.exe Nathan Sokalski Windows 64bit 16 02-22-2010 08:31 AM
What is Server-Side Jscript (not Jscript.NET)? Maxwell2006 ASP .Net 5 03-07-2006 05:28 AM
JScript.Net (JScript 7.0) is official documented language VK Javascript 4 01-12-2006 06:48 PM
Porting from JScript to JScript.Net - compiler error Jon Maz ASP .Net 4 09-09-2004 10:24 AM
Which to Learn: Javascript, Jscript, JScript.NET, ECMA 262 (3rd ed)? John Bentley Javascript 14 02-05-2004 06:14 PM