Skip to content

Commit

Permalink
implemented
Browse files Browse the repository at this point in the history
issue #296
  • Loading branch information
rsoika committed Aug 22, 2017
1 parent eb7bc04 commit 9d5676b
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,22 @@ public void addFile(byte[] data, String fileName, String contentType) {
}
}

/**
* Returns a data object for a attached file. The data object is a list
* containing the contentType (String) and the content (byte[])
*
* @param filename
* @return file data contentType (String) and the content (byte[])
*/
public List<Object> getFile(String filename) {
Map<String, List<Object>> files = this.getFiles();
if (files != null) {
return files.get(filename);
} else {
return null;
}
}

/**
* This method removes a single file attachment from the BlobWorkitem
*
Expand Down

0 comments on commit 9d5676b

Please sign in to comment.