Windows SMB2 icon

Windows SMB2

Access Windows network file shares via SMB2 protocol

Actions10

File → Read

AI-generated

Summary

Read file content from a Windows SMB2 network share.

Inputs

  • filePath (required) — Path to the file relative to the share root
  • encoding — Encoding for file content. Options: UTF-8, ASCII, Binary, Latin1. Default: UTF-8.
  • dataPropertyName (required) — The name of the output field to put the binary file data in
  • options — SMB2 operation options. Sub-parameters: timeout (ms, default 30000), shareOverride (string, default empty).

Output shape

The returned execution data depends on the selected encoding.

When encoding is binary, output includes binary data in the field named by dataPropertyName along with filePath, size, and encoding. When encoding is text (UTF-8, ASCII, Latin1), output includes filePath, content as a string, size, and encoding.

Examples

Example 1: Read a text file with UTF-8 encoding

filePath: 'docs/readme.txt'; encoding: 'utf8'; dataPropertyName: 'data' (ignored for text encoding). Output: { filePath, content: '', size: , encoding: 'utf8' }.

Example 2: Read a binary file

filePath: 'images/logo.png'; encoding: 'binary'; dataPropertyName: 'binaryData'. Output: { filePath, size: , encoding: 'binary' }, with binaryData placed in the field 'binaryData' as a binary token.

Links

Discussion