One Star

Binary File Input/Output Components

I want to read a file (PDF) and dump it into a MYSQL DB table column (BLOB type), there is no PDF related processing required just binary file reading. Is there any component to do that ?
I want to read that MYSQL DB column (BLOB type) and write to a file to generate same file (PDF) as read in step1. Is there any component to do that ?
If no suitable components then suggest any workaround to achieve this
3 REPLIES
One Star

Re: Binary File Input/Output Components

BUMP! Anybody who can answer this question, should I need to elaborate my question ?
One Star

Re: Binary File Input/Output Components

I have similar need with an input for binary files.
I want to be able to process the file as a ByteArray (e.g calculate md5 hash).
I did not find any component except the for the (text) delimited files.
One Star

Re: Binary File Input/Output Components

In fact I found the solution by using a tFileList then iterate on the list and using a tJava after to open it as:
File file = new File(globalMap.get("tFileList_1_CURRENT_FILE"))
Then we can process the file without thinking what is the file format (structured text or not).