473,587 Members | 2,489 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Convert.FromBas e64String from JScript on Internet Explorer

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
firewall.

I've used the .NET Convert.ToBase6 4String() method to encode the
data. I understand that the Convert.FromBas e64String 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.ToBase6 4String/Convert.FromBas e64String so that I can emulate
the decoding it uses on the internet explorer side?

Andy

Nov 20 '06 #1
0 1571

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5544
by: Mark D. Anderson | last post by:
About a month ago Richard Cornford did an interesting analysis of a memory leak in jscript (internet explorer) when there are "circular" references between DOM objects and (real) jscript objects: http://groups.google.com/groups?selm=bcq6fn%24g53%241%248300dec7%40news.demon.co.uk This message summarizes some testing I've done and their...
7
2892
by: Dr John Stockton | last post by:
The following DOS prompt command line, in a Win98 DOS box, cscript //nologo ~tmp.js executes file ~tmp.js as javascript/Jscript. The following batch file, similarly run, executes the same. @echo off
4
1518
by: Drew | last post by:
I need to do some client-side scripting for my Intranet and was wondering if Jscript or Javascript would be better? Everyone here uses IE 5.0 +, so I need to make a decision... Thanks, Drew
7
2058
by: netsurfer | last post by:
Hi: I'm having an issue with a website design that I'm working on a web page...and I'm coming up with an Error after opening the web site Internet Explorer browser that says: Error A Runtime Error has occurred. Do you wish to Debug?
6
2053
by: Jim H | last post by:
I have an app I working on that was working fine a few days ago. Now I get a jscript error: Microsoft JScript runtime error: Object expected in a part of the code that has not been modifed or touched. It's actually part of a separate project. I only get this error when I try to view the page on my local machine. If I connect to my...
3
11223
by: GeezerButler | last post by:
string s = "Hello"; byte abc = Convert.FromBase64String(s); This throws error "Invalid length for a Base-64 char array."?? Does anybody have any idea about how/why this happens?
13
1635
by: VK | last post by:
04.01.07 Redmond, WA Today it was officially announced that Microsoft is planning to discontinue client-side JScript support effective 10.08.07 The engine will be blocked and removed on the scheduled August auto-update for Windows XP and Windows Vista systems. The head of Microsoft Windows Scripting department reminds to complete the move...
15
3700
by: zz12 | last post by:
Hello, would anyone be able to confirm that 'jscript.dll' is a necessary file for an .asp page on IIS 5.0 to use the <script language="JavaScipt" runat="SERVER"code? It looks like the code in this section is not working and being recognized since it keeps giving me: "Microsoft JScript runtime (0x800A01B0) File name or class name not found...
0
7159
by: BobbyS | last post by:
I've a xml file.I'm taking its data passing it to a method in string form and converting that string "xmlData" to a array of bytes by Convert.FromBase64String(xmlData) but I'm getting a exception "Invalid character in Base-64 string." My code is like this. XmlTextReader xmlReader = new XmlTextReader(XML_LAYOUT_FILE_PATH); ...
0
7923
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7852
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8221
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3845
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.