So I recently started using Services and Services Views to synchronize data autonomously between a variety of platforms, and as I researched and tested, I found various ways to handle overcoming image/file fields through base64 encoding and Rules; however, one concept I cannot seem to wrap my head around and was wondering if anyone could give me advice/support on would be how to handle images uploaded directly inside of a WYSIWYG interfaces? I assume when I pull the data in a Global PHP field, I could manually try and search and scrape, but is there any potential for some form of support where field's capable of fullhtml would return an array where one item could either be the base64 equivalent, or maybe the traditional fid output?
Or maybe I'm having pipedreams..any thoughts?
Comments
Comment #1
ygerasimov commentedThis is definitively not trivial task to implement.
As you can have inline images added in different ways (for example directly from wysiwyg as they will appear as
<img/>tags or via media module where you will have special tag) you will need to handle those manually.I would suggest for this case to create a custom services resource and not to work with views at all. In this custom resource you will check all node html fields and try to find images from those fields. Afterwards you can add special field to the response with list of images that should be downloaded with this node.