aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-02-01 14:12:06 +0500
committerAbyss777 <abyss@fox5.ru>2018-02-01 14:12:06 +0500
commit22f792139406e381fdda5a02a61b61a577b33656 (patch)
tree487e241ebe4f5717b35d24c6308d144e173d49f5 /src/org/traccar/protocol
parent9d4e735f180576098900b373fff06bc661309592 (diff)
downloadtrackermap-server-22f792139406e381fdda5a02a61b61a577b33656.tar.gz
trackermap-server-22f792139406e381fdda5a02a61b61a577b33656.tar.bz2
trackermap-server-22f792139406e381fdda5a02a61b61a577b33656.zip
Provide access to media files received from devices
Diffstat (limited to 'src/org/traccar/protocol')
-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);
}