Transfer coverart without base64

This commit is contained in:
Andreas 2013-01-12 17:22:40 +01:00 committed by John Maguire
parent a4df18efee
commit e915d2e993
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ message SongMetadata {
optional string genre = 10;
optional int32 playcount = 11;
optional string pretty_length = 12;
optional string art = 13;
optional bytes art = 13;
}
message Playlist {

View File

@ -184,7 +184,7 @@ void OutgoingDataCreator::CreateSong(pb::remote::SongMetadata* song_metadata,
small.save(&buf, "JPG");
// Append the Data in the protocol buffer
song_metadata->set_art(data.toBase64());
song_metadata->set_art(data.data(), data.size());
buf.close();
}