GetFileEventSchema
Reads the file stored under fileName from the client's own file storage and emits its content downstream.
outputType decides the shape handed to the next events:
ArrayOfBytes(default) — the rawByteArray.FlowOfBytes— a streaming flow of chunks, for large files.PlatformFile— the platform file handle.MapObject— the bytes decoded as a JSON map.Base64— the bytes encoded as a Base64String.
incomingData consumed: not used.
Triggers fired:
OnSuccessEventTrigger— when the file was read; the content, in the shape chosen by outputType, is passed as incomingData.OnFailureEventTrigger— when the read failed, when no file exists under fileName (aNoSuchElementExceptionis passed), or whenMapObjectdecoding failed. TheThrowableis passed as incomingData and the error is logged.
Constructors
Properties
This event's own children — each declaring, via its own trigger, which of this event's outgoing triggers runs it. null when this event declares no children.
The condition that must occur for this event to run — matched by structural equality (data class/data object equality) against whatever trigger value fired, never by any kind of subscription or listener registry.