Solved

Base64 Binary Javascript

Posted on 2007-04-06
2
1,041 Views
Last Modified: 2008-02-01
I am processing a webservice using javascript... one of the elements returned is a byte array of a document.. so it is base64 encoded binary data...

I need to know if anyone can help me write this to disk using javascript?

Thank you
0
Comment
Question by:NTGuru705
2 Comments
 
LVL 15

Accepted Solution

by:
stanscott2 earned 500 total points
ID: 18868035
There are utility functions that let you read/write Base64 data here:

http://www.webtoolkit.info/javascript-base64.html

Javascript won't let you write directly to the disk, though -- it's a security violation.  If you're using IE, you have access to the Windows Scripting Host, but the user will (and properly) get a warning.
0
 
LVL 1

Author Comment

by:NTGuru705
ID: 18876880
I found what I needed..
There are some dlls here that can help you out on the web..
Here are two... both work within Javascript just fine.
http://www.miraplacid.com/msc/doc/msc_blob.html
http://www.sevillaonline.com/ActiveX/Base64.htm
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now