Hello,
I have a Webresoure that is an image and I am trying to retrieve the webresource in .NET (c# code), code is below
Thanks!
//Test Reteriving Webresource-Image
RetrieveMultipleRequest rmr = new RetrieveMultipleRequest();
RetrieveMultipleResponse resp = new RetrieveMultipleResponse();
Entity wb = resp.EntityCollection.Entities[0];
QueryExpression query = new QueryExpression()
{
EntityName = "webresource",
ColumnSet = new ColumnSet("content"),
Criteria = new FilterExpression
{
FilterOperator = LogicalOperator.And,
Conditions =
{
new ConditionExpression
{
AttributeName = "webresourceid",
Operator = ConditionOperator.Equal,
Values = { "new_image1" }
}
}
}
};
rmr.Query = query;
resp = (RetrieveMultipleResponse)_serviceProxy.Execute(rmr);
byte[] b = Convert.FromBase64String("content");
}
*This post is locked for comments