I have a simple site (WebAPI) that returns a bunch of albums in the get method. Each album has attributes such as title, artist and so on. The attribute under here is the image (album photo) attribute. Each album has an image, what is the best way to send the image back to client. Should it be sent as binary data as part of the album object for example like
Public Class Album
{
string title;
byte[] image;
}
Or should I send the path to the image in the Album object and have the client download the image separately?
Like Public Class Album { string title; string imagePath; }