Assuming you are running ftp on the PC, the following commands (after
connecting to the mainframe) should move your file without destroying it:
image
put fileName
The image command tells ftp that you are sending binary data and ascii
(to ebcdic) translation should not take place. The put command sends the
file, keeping the existing file name. This works best if your file name
is compatible with your mainframe naming conventions.
The easiest way to load the file is to use ISPF to build a file
containing one record that corresponds to the row data associated with
the image. The record will contain a file reference pointing to the
image file. The DB2 utilities reference (LOAD command) should explain
how to build the file reference data for the blob column.
Philip Sherman
ganapath wrote:
Hi,
i have a jpg file on my pc which contains only 1 photo,
1. i would like to ftp the file to mainframe and then
2. insert that value into blob field of a db2 table
can anyone tell me how to do above mentioned steps
Thanks