
Is it possible to send directly an image in DATA to a WebGadget ??
Code: Select all
Enumeration
#Form0
#Web0
#Bouton0
#Image
EndEnumeration
OpenWindow(#Form0, 216, 0, 397, 340, "New window ( 0 )", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
WebGadget(#Web0, 12, 18, 372, 291, "about:blank")
ButtonGadget(#Bouton0, 104, 315, 182, 20, "")
Repeat
Evenement = WaitWindowEvent()
If Evenement = #PB_Event_Gadget
Select EventGadget()
Case #Bouton0
ImageID = CatchImage(#Image, ?FlagImage)
SetGadgetText(#Web0, "???")
EndSelect
EndIf
Until Evenement = #PB_Event_CloseWindow
End
DataSection
FlagImage:
IncludeBinary "Image.jpg"
EndDataSection