Hi Pubudu,

I think you should save object as a byte array when you are saving the
object in the carbon registry.

Thanks
Regards
/Thusitha

On Mon, Mar 9, 2015 at 12:23 PM, Pubudu Dodangoda <pubu...@wso2.com> wrote:

> I am trying to save Objects in the registry as resources via a REST api
> A resource is successfully saved and can be downloaded when the content is
> a String
>
> But whenever I try to save some other type of object, and try to download
> the resource, I get the following error message in the terminal. ( A
> resource is saved, but cannot be downloaded, it redirects to the same page)
>
> [2015-03-09 12:15:13,657] ERROR
> {org.wso2.carbon.registry.resource.ui.utils.GetResourceContentProcessor} -
>  The resource content was empty.
>
> Is there any special procedure to be followed when saving an object of
> type other than String
>
> Thank you and Kind Regards
>
> --
> Pubudu Dodangoda
> BSc Engineering(Hon's) Undergraduate
> Department of Computer Science Engineering
> University of Moratuwa
> 0716053681 / 0775192994
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog      alokayasoya.blogspot.com
About    http://about.me/thusithathilina
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to