简体   繁体   English

从SalesForce查询图像为Blob

[英]Query image from SalesForce as blob

Is there any way I can query the image from SalesForce server as a blob object ? 有什么办法可以从SalesForce服务器查询图像作为Blob对象? We already have forcetk client queries which is retrieving all the data, but the image alone is returned as a link (salesforce link). 我们已经有forcetk客户查询,该查询正在检索所有数据,但是仅图像作为链接(salesforce链接)返回。

Can we retrieve image as blob in the same REST query call ? 我们可以在同一REST查询调用中将图像检索为blob吗?

The methods I saw required to make an extra call to fetch images, but here I have images in each row of the result, it would have been better if images come as a part of result object itself. 我看到的方法需要额外调用以获取图像,但是在结果的每一行中都有图像,如果图像作为结果对象本身的一部分会更好。

If you're using the REST API, then the blob data can't be returned with the rest of the object, it has to be a separate request. 如果您使用的是REST API,则无法与对象的其余部分一起返回blob数据,它必须是单独的请求。 If you use SOAP then it can inline the blob data with the rest of the fields for the object, but it will be limited to returning one row at a time. 如果使用SOAP,则可以将blob数据与对象的其余字段内联,但仅限于一次返回一行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM