Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi TRF,
thank's for your answer.
Maybe it's not necessary to convert files to base64. In fact, i just want recup pdf's files from my scanner and dispath them in proper repertories.
Tehe base64 conversion was for use Elasticsearch which associated with Kibana allowed to read the pdf and thus to detect a key word.
I'm open to any solution...
Hi TRF,
I haven't seen your answer, I start on the Forum 🙂
I followed your explanations, but I have this error : Syntax error, insert "Dimensions" to complete Expression
I think it's due to a bad format but I dont find where ?
Bellow, the impacted code :
row3.Parent_ID = row2.Parent_ID; // Related object's Id
row3.Name = row2.Name; // The document's name such as xxxxx.docx or yyyyyy.xlsx or anything else
row3.ContentType = row2.ContentType; // Object's name such as Account, Task and so on
row3.Body = null; // The place to put the conversion result
// In this case, I iterate over the input directory using a tFileList
File file = new File((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"));
try {
// Read file
documentInFile = new FileInputStream(file);
byte documentData[] = new byte;
documentInFile.read(documentData);
// Convert bytes array to Base64 string to fill Body field
row3.Body = new String(Base64.encodeBase64(documentData));
System.out.println("+++ File converted "+(String)globalMap.get("tFileList_1_CURRENT_FILEPATH"));
} catch (FileNotFoundException e) {
row3.conversionCode = "FILE_NOT_FOUND";
row3.conversionMessage = "File not found "+(String)globalMap.get("tFileList_1_CURRENT_FILEPATH");
System.out.println("*** File not found "+(String)globalMap.get("tFileList_1_CURRENT_FILEPATH")+"\n"+e);
} catch (IOException ioe) {
row3.conversionCode = "CONVERSION_ERROR";
Hi TRF,
Here my job with an error message on the Sleep.
I don't understand how tSalesForceOutput works ?
Furthermore, here the message after running job :
Not the same subject.
Anyway, the message is clear, you cannot have a main row after a component which doesn't have an input row.
Change the main row after tSleep by an onComponentOk trigger.
I can only attach main row after tSleep. I don't know why !!
I think I have to learn English before use Talend successfully 🙂
Because the component (tJavaRow) requires an input row.
So you have to change for a tJava (I assume you don't have anything you expect from a row in the actual tJavaRow component).
If you are not sure of how to write what you expect, you can write your message in english + french (I'm french), but english is better on this forum (elsewhere this is an other question).