# Revision history [back]

### Unexpected imdecode error

I wanted to download an image from a given URL. I followed the answer given to a previous question I posted. Here

It works fine on its own, but when I integrated it with Kurento Media Server it gave an error.
There was an unexpected error as follows:

Unexpected error while processing method: /build/buildd/opencv-2.4.8+dfsg1/modules/highgui/src/loadsave.cpp:307: error: (-215) buf.data && buf.isContinuous() in function imdecode_
(Code:-32603, Type:null)


What could be the error?

### Unexpected imdecode error

I wanted to download an image from a given URL. I followed the answer given to a previous question I posted. Here

It works fine on its own, but when I integrated it with Kurento Media Server it gave an error. did not work.
There was an unexpected error as follows:

Unexpected error while processing method: /build/buildd/opencv-2.4.8+dfsg1/modules/highgui/src/loadsave.cpp:307: error: (-215) buf.data && buf.isContinuous() in function imdecode_
(Code:-32603, Type:null)


What could be the error?