CITRIX / POWERBUILDER - issue ?

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Post Reply
SBOUVETJD

CITRIX / POWERBUILDER - issue ?

Post 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
Post Reply