Image DecodeUrl IHttpTransactionEventListener

Image DecodeUrl IHttpTransactionEventListener

BY 30 Sep 2014 Native Application Development

Hello,

Im trying to load an image from a remote url.

I am using DecodeUrl, but keep getting  the following error:

09-30 22:59:49.331 : ERROR / Tizen::Net::Http ( 6361 : 6361 ) : result Tizen::Net::Http::_HttpTransactionImpl::Dispose()(284) > [E_INVALID_STATE] HttpTransaction[0] is already closed.

I confirm that i can access remote Web Services using IHttpTransactionEventListener contract.

Here is my sample code:

result
MainForm::OnInitializing(void)
{   
    (...)
    Image img;
    RequestId reqId;
    Uri _uri;
    img.Construct();
    
    _uri.SetUri(L"http://www.somesite.com/images/chann_26_2919.png");
    img.DecodeUrl(_uri, BITMAP_PIXEL_FORMAT_RGB565, 20, 20, reqId, *this, img.TIMEOUT_INFINITE);
    
    (...)
    return result;
}

(..)

void
MainForm::OnImageDecodeUrlReceived (RequestId reqId, Bitmap *pBitmap, result r, const String errorCode, const String errorMessage)
{   
	AppLog("OnImageDecodeUrlReceived");//not called!	
}

Can anyone help me out with this? Is there any example i can follow to help me with this?

 

Thanks

Nuno

 

Written by