The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Extracting the data from a file. [SOLVED]
JEdward
RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 578 Unicorn
Hello,
I'm wanting to extract the data from a file so I can then use it as an example set.
Basically to go:
Open File -> {extract file data as blob} -> Use blob data as example.
So far the closest I can find to do this is using the script operator, but how would I refer to the output of the 'Open File' operator within a Groovy script?
Thanks,
John.
I'm wanting to extract the data from a file so I can then use it as an example set.
Basically to go:
Open File -> {extract file data as blob} -> Use blob data as example.
So far the closest I can find to do this is using the script operator, but how would I refer to the output of the 'Open File' operator within a Groovy script?
Thanks,
John.
0
Answers
you can see how it could be done in the following process: Regards,
Marco
Not sure though how the encoding deals with binary files.
Best regards,
Marius
I actually fudged it using a macro and reading the file within the Groovy script with the line:
f = new File("%{file_path}")
It works, but I much prefer your version as it should be more flexible overall & might offer a speed improvement as it's executing java directly.
I'll give a test both ways and compare.
Best,
John.