diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-02-02 19:55:59 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-02 19:55:59 +1300 |
commit | c70fa517c467472e96c1f06729da338ac7a39c9e (patch) | |
tree | 9edd5d2230d2fdad6a7d70ba255328dc0b5a2f17 /src/org/traccar/protocol/Gt06ProtocolDecoder.java | |
parent | 9d4e735f180576098900b373fff06bc661309592 (diff) | |
parent | 1d56c58847d811086d65115d7dca7a705bfda92a (diff) | |
download | trackermap-server-c70fa517c467472e96c1f06729da338ac7a39c9e.tar.gz trackermap-server-c70fa517c467472e96c1f06729da338ac7a39c9e.tar.bz2 trackermap-server-c70fa517c467472e96c1f06729da338ac7a39c9e.zip |
Merge pull request #3749 from Abyss777/media_access
Provide web access to media files received from devices
Diffstat (limited to 'src/org/traccar/protocol/Gt06ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Gt06ProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index e11a6580b..4173b4d5b 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -704,7 +704,8 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { sendPhotoRequest(channel, pictureId); } else { Device device = Context.getDeviceManager().getById(deviceSession.getDeviceId()); - Context.getMediaManager().writeFile(device.getUniqueId(), photo, "jpg"); + position.set( + Position.KEY_IMAGE, Context.getMediaManager().writeFile(device.getUniqueId(), photo, "jpg")); photos.remove(pictureId); } |