Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-03-2010, 04:13 PM
Junior Member
 
Join Date: Mar 2009
Posts: 12
Default Please Help reading Base64 encoded String

I write a Base64 encoded string to disk using:

function saveFile(file, name)
{
var f = new FileStream("images\\" + name, "w");
f.write(file);
f.close();
}

Where file is the encoded string. This works perfect.

My problem is I’m so far unable to simply read the string back in and pass it back to Flash.

I have tried:

function getFile(name)
{
var f = new FileStream("images\\" + name, "r");
var b = f.read(f.length);
return f;
}

And this returns like 2 bytes…

So I tried StringStream like:

function getFile(name)
{
var f = StringStream.readFromFile("images\\" + name);
return f;
}

And this does nearly the same thing.

I have a pressing deadline and really need to get this to work. Someone please give me a hand.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

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 On



All times are GMT. The time now is 06:11 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.