c# - How to retrieve an image from an OData Service? -


i have odata service (its system center orchestrator's web service if must know ) returns bmp image if query

http://localhost.com/orchestrator2012/orchestrator.svc/runbookdiagrams(guid'882f767d-63bd-437c-b0c7-4051aac56176')/$value

so saying, give me runbookdiagram id 882f767d-63bd-437c-b0c7-4051aac56176

it renders correctly in ie. when query fom c# i'm not able image data, other data fields.

now documentation of webservice says need use $value return query. how use $value in following odata query c#

runbookdiagram rbkdiag=orch.runbookdiagrams.where(                                                   m => m.runbookid ==runbookid                                                  ).singleordefault(); 

maybe service returning images media link entries? can check viewing xml returned server , m:hasstream="true"

if case use getreadstream on context.

check this astoriateam blog post details.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -