Solved

Base64 Binary Javascript

Posted on 2007-04-06
2
1,048 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

813 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

18 Experts available now in Live!

Get 1:1 Help Now