Skip to content
This repository has been archived by the owner on Nov 18, 2019. It is now read-only.

Commit

Permalink
partially resolve issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
szhu64 committed Feb 5, 2017
1 parent 1a982f2 commit 1a22c28
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions core/net/auvsi-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,7 @@ class AUVSIClient {
}

postTargetImage(id, imageBase64, callback) {
// FIXME: Encode image for the server

let image = imageBase64;
let image = Buffer.from(imageBase64,'base64');

this._request({
method: 'POST',
Expand All @@ -281,15 +279,13 @@ class AUVSIClient {
returns: true
}, (body) => {
// FIXME: Decode image back to base64

// return Buffer.from(body,'binary').toString('base64');
return body
}, callback);
}

putTargetImage(id, imageBase64, callback) {
// FIXME: Encode image for the server

let image = imageBase64;
let image = Buffer.from(imageBase64,'base64');

this._request({
method: 'PUT',
Expand Down

0 comments on commit 1a22c28

Please sign in to comment.