Skip to main content
Open

Add option to FeatureReader to be able to read from blob

Related products:Transformers
  • February 4, 2022
  • 1 reply
  • 33 views

thijsknapen
Contributor
Forum|alt.badge.img+11

This would for instance be usefull when dealing with XML, JSON or rasterdata from API's. Kind of like how the RasterReplacer transformer offers this functionality for rasterdata.

Of course there is the option of writing to a temporary file (TempPathnameCreator - AttributeFileWriter) and then reading it in from the (temporary) filepath, but I think a direct implementation in the FeatureReader would be nicer (and maybe also a bit more efficient, since you already have the data as a blob).

1 reply

vlroyrenn
Enthusiast
Forum|alt.badge.img+14
  • Enthusiast
  • March 18, 2024

I’ll second this for different reasons. A few transformers (FTPCaller comes to mind) give the option of passing file data as an attribute instead of writing it to a file, but then most other transformers don’t let you do anything with that data, save for decoding it with a PythonCaller or dumping it to disk and reading it back (with all the new problems file management brings). Having the option to run FeatureWriter on binary attribute data would be a big improvement.