× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: BLOB
  • From: Rob Berendt <rob@xxxxxxxxx>
  • Date: Wed, 8 Dec 1999 17:16:44 -0500

How about a few lines of code or an SQL statement or something that would link 
the two

file 
/drawings/ABC123.bmp

into file mylib/myfile in the record that has a key equal to the prefix of the 
file name, ABC123
and has a datalink or blob or whatever field.






rbruceh@attglobal.net on 12/08/99 04:47:16 PM
Please respond to MIDRANGE-L@midrange.com@Internet
To:     MIDRANGE-L@midrange.com@Internet
cc:      
Fax to: 
Subject:        Re: BLOB


-----Original Message-----
From: Rob Berendt <rob@dekko.com>
To: MIDRANGE-L@midrange.com <MIDRANGE-L@midrange.com>
Date: Wednesday, December 08, 1999 3:33 PM
Subject: BLOB


>Anyways let's say I get this to work.  How do I get data into the BLOB
field?
>For example let's say that I have the drawing in the IFS as a *.bmp file.
>


Let's see... if you are using DB2 V5 and up, you just hand it the file
handle. The system does the rest.

On OS/400, you can use a locator and id the file. The file is then tracked
by the system without really moving the data. Locators only exist for the
transaction.

On OS/400, you can use a DataLink to manipulate the data also.  This is a
URL or path and file name that is used to id the LOB and move it at the
appropriate times. Look at the DLVALUE function for more information.
DataLinks are explained in the DB2 UDB for AS400 Programming Guide, about
page 180.

===========================================================
R. Bruce Hoffman, Jr.
 -- IBM Certified AS/400 Professional System Administrator
 -- IBM Certified AS/400 Professional Network Administrator

"The sum of all human knowledge is a fixed constant.
    It's the population that keeps growing!"


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.