草庐IT

xml - Tridion : What should be the xml request using Business Connector to download the images along with xml data?

coder 2024-06-25 原文

我正在使用 Tridion 5.3 版。 我是 Tridion 的新手。 我想使用业务连接器下载图像文件及其 XML 数据。我目前的要求如下。

<?xml version='1.0'?>
<tcmapi:Message xmlns:tcmapi="http://www.tridion.com/ContentManager/5.0/TCMAPI"
version="5.0" from="testTool" failOnError="false">
<tcmapi:Request ID="Request1" preserve="false">
  <tcmapi:GetItem itemURI="tcm:6-3146" writeBinaryToDisk="true">
    <tcmapi:ItemFilter type="XMLReadAll"/>
  </tcmapi:GetItem>
</tcmapi:Request>
</tcmapi:Message>

我应该修改什么?

最佳答案

不要认为仅使用 Business Connector 就可以做到这一点。

使用“writeBinaryToDisk”属性从 GetItem 请求返回的响应应包含多媒体文件写入位置的路径 - 通常在 Windows“Temp”文件夹中,但您可以通过添加“二进制路径”属性。寻找:

<tcmapi:MultimediaFilename>C:\WINNT\Temp\rad5FB9C.tmp</tcmapi:MultimediaFilename>

我认为如果您使用此属性,您必须确保运行 Business Connector 的帐户可以读取/写入您提供的任何替代路径。

然后您需要“其他东西”来实际从服务器检索文件,例如使用“binaryPath”写入临时网页可访问的文件夹,并使用该页面列出所有文件。然后,您必须将文件重命名为原来的文件名!

上次我接近这样的事情时,事实证明,只需获取 Tridion 发布二进制文件的“图像”文件夹的副本并从那里离开会更快!

干杯

关于xml - Tridion : What should be the xml request using Business Connector to download the images along with xml data?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9766604/

有关xml - Tridion : What should be the xml request using Business Connector to download the images along with xml data?的更多相关文章

随机推荐