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.
Page 1 / 1
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?
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
Depending on what format the binary is, it may be possible with something like a RasterReplacer.