Page 1 of 1

CITRIX / POWERBUILDER - issue ?

Posted: Tue Dec 04, 2007 9:59 am
by SBOUVETJD
Hello,

I have an application which allowed the user to take pictures with a webcam and save this image in a database ;

When I take a second picture in the same row, the viewer showed me the first picture I took...

We had to call a local application on the ICA client to communicate with the webcam (psExec -> webcam.exe).

The picture "temp.jpg" is the picture I took, but the BLOB I display then is the first picture I took.

Here a sample of my code ;

Code: Select all

Blob lblb_pic

lole_appli = CREATE OleObject
lole_appli.ConnectToNewObject("WScript.Shell")
lole_appli.Run("psexec \\" + ls_clientname + " -i C:\webcam\webcam.exe", C_NORMAL, C_WAIT)
	
lole_GflAx = CREATE OLEOBJECT
li_ret = lole_GflAx.ConnectToNewObject("GflAx.GflAx")
			
If fileexists("C:/temp.jpg") Then 			
   lole_GflAx.LoadBitmap("C:/temp.jpg")
   lblb_Pic = lole_GflAx.setBlob()
End If