By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,007 Members | 1,248 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,007 IT Pros & Developers. It's quick & easy.

jpg file to mainframe

P: n/a
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

Mar 27 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

Mar 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.