Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Consuming byte stream data in ember-data

$
0
0

@maninder wrote:

Hi,

I am facing problem with consuming data in image/png format.

Problem My server return a file data as bytes stream ( content-type is image/png'). When i call a store.find with model it try to fetch the data from server. as data is not in json so default RESTAdapter unable to parse it and throw parsing error. so i provide a custom implementation for adapter ( DS.Adapter ) but when i do this it unable to form the api url ( endpoint/ hook ) based on model name. any suggestion how to consume byte stream data from server using ember-data.

Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles