Is there a way to get an image width and height from a base64 encoded image data synchronously? Possibly by header information.
I must make this extremely clear. I'm not interested in async methods. Please move on if you want to know reasons why async won't work. Don't even comment.
Here is my example code to encode my data. Encoding is synchronous. I'm using this call:
var base64ImageData:String = DisplayObjectUtils.getBase64ImageDataString(displayObject, DisplayObjectUtils.PNG, null, true);
Here is my code to decode my data. The only method I've found in AS3 to decode is asynchronous. I'm using this call:
var bitmapData:BitmapData = DisplayObjectUtils.getBitmapDataFromBase64(bitmapDataString);
Let me repeat, I'm looking for a synchronous action. It cannot be asynchronous.
If it's possible to add width and height into the base64 stream and then get it later that will work as well.