3

Is there any way I can query the image from SalesForce server as a blob object ? We already have forcetk client queries which is retrieving all the data, but the image alone is returned as a link (salesforce link).

Can we retrieve image as blob in the same REST query call ?

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.

  • 1
    Insufficient information. Which objects are you querying from? What do your queries look like? We probably have an answer for you, but the devil is in the details. – sfdcfox Oct 10 '13 at 13:39
  • I am facing the same issue. Did any one resolved this issue? – User123 Feb 12 '15 at 14:11
  • I am facing the same issue. Did any one resolved this issue? – User123 Feb 12 '15 at 14:11
  • This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. – Chris Duncombe Feb 12 '15 at 14:40
4

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. 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.

| improve this answer | |
  • I am trying the rest api but not able to fetch this blob with plain image call – sij Oct 11 '13 at 4:49
  • update your question, i have no idea what you mean by a plain image call. – superfell Oct 11 '13 at 5:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.