aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gt06ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-02-02 19:55:59 +1300
committerGitHub <noreply@github.com>2018-02-02 19:55:59 +1300
commitc70fa517c467472e96c1f06729da338ac7a39c9e (patch)
tree9edd5d2230d2fdad6a7d70ba255328dc0b5a2f17 /src/org/traccar/protocol/Gt06ProtocolDecoder.java
parent9d4e735f180576098900b373fff06bc661309592 (diff)
parent1d56c58847d811086d65115d7dca7a705bfda92a (diff)
downloadtrackermap-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.java3
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);
}