Guest User

Untitled

a guest
Jan 12th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Tridion core service How to download binary file of a multimedia component
  2. core_service.ServiceReference1.SessionAwareCoreService2010Client client = new SessionAwareCoreService2010Client();
  3. client.ClientCredentials.Windows.ClientCredential.UserName = "myUserName";
  4. client.ClientCredentials.Windows.ClientCredential.Password = "myPassword"; client.Open();
  5. ComponentData component = (ComponentData)client.TryCheckOut(
  6. multimediaComponentURI, new ReadOptions());
  7. BinaryContentData binaryData = component.BinaryContent;
Add Comment
Please, Sign In to add comment