I am trying to consume the response from server as bytes stream ( content-type as image/png ) in ember application using there ember-data persistent layer.
The problem that i am facing are ember-data has RESTAdapter as default adapter that accept the response in JSON format so it breaks at parsing well that ok as my response is not json. Then i override the find method of store in adapter taking reference from http://ift.tt/1TcnsXQ
Then i call this.store.find('model',id). Usually store will make a service endpoint / hook url based on model name provide in store.find method. But now the url only contains the id part.
Any suggestion how to consume the image data( bytes ) in adapter using ember-data?
Thanks
Aucun commentaire:
Enregistrer un commentaire