I'm doing a system where a PDF ... That PDF is recovered in LiveCode through an image and generates RevBrowser ... Everything that makes as follows:
on card:
Code: Select all
global myBrowser2
on browserOpen2
if myBrowser2 is empty then
put revBrowserOpenCef(the windowid of this stack,"") into myBrowser2
end if
revBrowserSet myBrowser2, "showborder","true"
revBrowserSet myBrowser2, "visible","true"
revBrowserSet myBrowser2, "rect",rect of image "bwin2"
end browserOpen2
on browserClose2
revBrowserClose myBrowser2
put empty into myBrowser2
end browserClose2
Code: Select all
global tFile
global myBrowser2
on mouseUp
GLOBAL theResult,thepDF
browserOpen2
PrintCards2
answer thePDF
revBrowserSet myBrowser2, "url", thepDF
revBrowserSet myBrowser2, "rect", "0,0,800,800"
end mouseUp
What I want to do now, it is to insert the PDF shown in a database and be able to recover.
I read about the BLOB, but really do not know how to be inserted by a PDF file from LiveCode.
Best regards! = D