I want to load an image from the web and display it in SCAR.
Is it possible to do?
I want to load an image from the web and display it in SCAR.
Is it possible to do?
I'm not sure was there a shorter way, but atleast doing a GetPage, saving it to a .bmp, and doing a LoadBitmap should work.
the problem is that the particular image i want to load is an jpeg file.
It would have been nice if scar could share its cookies with MS IE or Firefox.
Its like i have to login to acess that image...
And the image its randomly generated... just like those in image verification.
EDIT :
Ok i solved my problem...
This is just a work around...Code:program New; var http_client,file_num :integer; image :string; Const image_url:='.jpg'; //Enter the internet address of the jpg image file. begin http_client:= InitializeHTTPClient(true,true); image:=GetPage(image_url); file_num:= RewriteFile(scriptpath+'image.jpg', false) if (file_num > -1) then begin WriteFileString(file_num,image) end end.
I just needed to view that image.
There are currently 1 users browsing this thread. (0 members and 1 guests)