Hi Alexander,
You could make a Process flow that starts with a Start (table) task process action. That task should have two task parameters, one for the file name (domain with file upload - Database storage type) and one for its file data. These parameters can then be linked with process variables.
Now you have the file data inside the process variable and you can do anything with it.
Hope this helps!
Hi Mark,
Well, I have a PF that does something. 1 start task - upload file.
Task 2 - with a template to process the file.
But the var ‘file_content’ is now - according to the PF monitor set with value ‘System.Bytes]’ and the code processing the data states;
JSON text is not properly formatted. Unexpected character '祓' is found at position 0.
or, we fiddling; Unexpected character 'ൻ' is found at position 0.
So, somewhere something is off, since i’m not formatting an asian language..
I have two vars. 1 file_upload (databse), 1 file_content. he domain for this var is a varbinary(max).
Quite lost on this.
Also, I don’t see the file/data in my db. I have made a table for this, with 3 columns. PK, file_name, file_content. Yet.. no records. Where/how can I spec that the file needs to go in said table?
Could it be that you try to convert the data into nvarchar(max)? If you make that varchar(max) instead, does that solve it?
The Task will not automatically add it to your table, you’ll have to write the insert into statement for it, using the variables as select values. E.g.:
insert into json_table
(
file_name,
file_data,
file_data_in_text
)
select
@file_name,
@file_data,
convert(varchar(max), @file_data)