Question

Is it possible to have feature reader parse the contents of a Attribute


I would like to use HTTPCaller to grab the contents of a file from a webserver and store it in an attribute as a binary and then use a FeatureReader type of transformer to parse the binary attribute. I thought I was able to do this before, but I can't figure out how I may have done it.


3 replies

Userlevel 2
Badge +17

Hi @jamesblake, I don't think the FeatureReader can be used to directly parse the contents stored in an attribute of an incoming feature. Why not save the download contents into a temporary file with the HTTPCaller and then read it with a FeatureReader?

Badge +7

Is this what you want to achieve?

https://knowledge.safe.com/articles/879/how-to-read-the-contents-of-a-file-into-a-database.html

and

https://hub.safe.com/templates/read-blobs-from-a-database-and-write-out-files

Badge +22

Depending on what format the binary is, it may be possible with something like a RasterReplacer.

Reply