Almost there...
Is there a way to get CPData from the CPURLConnection? Or do I just make a CPData from the string return?
This is what I have so far:
- (void)connection:(CPJSONConnection)aConnection didReceiveData:(CPString)data
{
var returnCode = [aConnection _HTTPRequest].status();
if (returnCode == 200) {
var imageData = [[CPData alloc] initWithRawString:data];
proxy = [[CPImage alloc] initWithData:imageData];
CPLog(proxy)
}
}
My log statement returns:
<CPImage 0x008d3b> {
filename: "data:image/png;base64,///9/QAQSk...RK//03///9",
size: { width:-1, height:-1 }
}