Saving BLOB while connected to IBM i in VLF-Forms (RESOLVED)

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Saving BLOB while connected to IBM i in VLF-Forms (RESOLVED)

Post by atostaine »

I have a picture in c:\temp. My function is running connected to IBM i. I try to insert a record into my table with a blob field and I get fieldName length is 0. https://www.ibm.com/support/knowledgece ... n404.html

It looks like it's happening for large image files (23meg), but not for smaller ones. I don't see a timeout connection in the VLF-WIN server connection.
Art Tostaine
PierreLefrancois
Posts: 23
Joined: Wed Nov 09, 2016 3:02 am

Re: Saving BLOB while connected to IBM i in VLF-Forms

Post by PierreLefrancois »

Hi there,

Can it be this : https://www.lansa.com/support/tips/t0476.htm

Pierre
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Saving BLOB while connected to IBM i in VLF-Forms

Post by atostaine »

That sure looks like it. Care to share your search method?
Art Tostaine
PierreLefrancois
Posts: 23
Joined: Wed Nov 09, 2016 3:02 am

Re: Saving BLOB while connected to IBM i in VLF-Forms

Post by PierreLefrancois »

I just remembered that issue we had long time ago.

Hope that solves it for you and that it's not something else.

Good luck - Pierre
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Saving BLOB while connected to IBM i in VLF-Forms

Post by atostaine »

Darn that wasn't it. Unless I have to restart the listener subsystem?
Art Tostaine
PierreLefrancois
Posts: 23
Joined: Wed Nov 09, 2016 3:02 am

Re: Saving BLOB while connected to IBM i in VLF-Forms

Post by PierreLefrancois »

You need to check-in and recreate the table on the IBM i

From the tip:
After changing this to an acceptable value for your system, save the x_dbmenv.dat, and redo the check-in (ensure you select to recreate the file)
Maybe you did, just checking..
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Saving BLOB while connected to IBM i in VLF-Forms

Post by MarkD »

Any joy after recreating the file? Maybe have a look at it with DSPFFD to see what it says about the BLOB field?
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Saving BLOB while connected to IBM i in VLF-Forms

Post by atostaine »

Dspffd shows 30 meg which is what I set the environment variable to.

I also reduced the size of my images. Something fixed it.
Art Tostaine
Post Reply