Hi Chris,

The only thing that function does is create a new byte[size].

You should be able to replace it by
Var content = new byte[file.length()]

Cheers,
Hans
On 8 Nov 2023 at 15:24 +0100, ch...@radical-airlines.com, wrote:
> Hello !
>
> Once upon a time in the old PDI archive we had a sample KTR showing how to 
> load some files in a BLOB field of a DB (General - Load images and stores 
> into database table.ktr).
> It's not really up to date, however I'm backporting some old transforms to 
> HOP and would like - as a first step -  to reuse the current logic rather 
> than rewriting everything.
>
> Transform was quite simple :
>
>
>
> And the modified javascript component had a few lines of code:
>
>
>
> For sure the class "Packages.org.pentaho.xxx" does not exist anymore.
> I'm not at all a good developer and if someone can provide me the correct way 
> of doing it with Hop I'd greatly appreciate :-)
>
> Regards,
> Chris
>

Reply via email to