--- title: "get content of attached file of workflow()" slug: "w-flow-get-attachment" updated: 2025-12-10T06:28:47Z published: 2025-12-10T06:28:47Z canonical: "docs.lobstersoftware.com/w-flow-get-attachment" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # get content of attached file of workflow() **This function is deprecated.** This function returns the Base64 encoded content (encoding "8859_1") of workflow file **b** of workflow job **a**. If either the workflow job or the file was not found, the return value of the function is an empty string ("") with set Empty Flag. ## Parameters | Parameter | Description | | --- | --- | | a | Name (see VAR_SYS_WF_DISPLAYNAME) or ID (see VAR_SYS_WF_ID) of the workflow job. | | b | Name of the file. | | c | (optional) Name of a map in which the file attributes will be stored. **Note:** See also function dump map(), for example. *description* - The description of the file. *file-size* - The size of the file in bytes. *upload-date* - The time at which the file was uploaded. *user* - The user who uploaded the file. ** - User-defined file attribute added with function attach file to workflow(). ... - More user-defined file attributes. | ## Example Let's assume that the workflow job named *MyWorkflow 1628490814713* has the file *myfile_1.txt* with content *111* attached. **Note:** The value *MTEx* is the Base-64 encoded value *111* (encoding *8859_1*). | Parameter a | Parameter b | Parameter c | Result | | --- | --- | --- | --- | | MyWorkflow 1628490814713 | myfile_1.txt | | MTEx | ### Decoding Function decode Base64() can decode Base64 values. ### Saving Function write into file() allows text and binary files to be saved directly from a Base64 value.