PDA

View Full Version : store.load returns a file stream. Can I catsh it to memory for later use?



darkhorni
28 Jun 2012, 4:24 AM
store.load({
callback: function(records, operation, success) {
uriContent = "data:application/octet-stream," + encodeURIComponent(records);
newWindow=window.open(uriContent, 'neuesDokument');
console.log(records);
}
});
I have tried the above code but it didn't help because records returns null. However in fact it is an excel file stream.

mitchellsimoens
6 Jul 2012, 2:12 PM
You should decode the excel file on the server and pass back json to the client.