User Tools

Site Tools


odtools:od_storefilewithobject

This is an old revision of the document!


OD Store File In Object is a command sequence plugin that takes a filename and chunk ID as parameters. It is not to be used a standalone tool, but can be used within other scripts or just be called with arguments.

In python, invoking the command is at follows:

lwsdk.command('cmdseq “OD_StoreFileWithObject” \“'+ <file on disk> + ', ” + ID + “\”')

this example, will store the file c:\test.txt into a chunk id ^:

  1. filename = r“c:\test.txt”
  2. ID = “^”
  3. lwsdk.command('cmdseq “OD_StoreFileWithObject” \“'+ filename + ', ” + ID + “\”')

The file can at any point in time be restored via OD_RestoreFileFromObject. One use for the mechanism, is to store copyright trackers (like your name, date, etc) in your object.

The File currently has a size limit of 1 MB.

odtools/od_storefilewithobject.1548132020.txt.gz · Last modified: 2019/01/21 21:40 by oliver