|
|||
|
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. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|