I get "This path format is not supported." when I just try to download a multimedia image from my SDL Tridion 2011 SP1, below is the path that I get, I donโt know how โN:โ etc. go
D: \ delete \ Images \ N: \ dmc.FlipMedia.Clients.TestCMS \ 2009_WorkInProgress \ creatives \ 05_May \ Children under 16 go to the UK \ assets_graphics \ jpg \ Kids_go_free_385x306.jpg
Below is the code:
public static void GetBinaryFromMultimediaComponent(string tcm, CoreServiceClient client, StreamDownloadServiceClient streamDownloadClient) { ComponentData multimediaComponent = client.ReadItem(tcm) as ComponentData;
Please suggest !!
Edit:
I got the file name using Nuno Suggestions, but on my way to
Stream tempStream = streamDownloadClient.DownloadBinaryContent(tcm);
I get below errors, any suggestions on this?
The content type multipart/related; type="application/xop+xml";start="";boundary="uuid:5f66d04b-76d3-4d3a-b8e3-b7b91e00ed32+id=2";start-info="text/xml" of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 595 bytes of the response were: '
source share