HI
How can i show an image from the internet with html5 build rather than from the
file directory.
local function networkListener( event )
if ( event.isError ) then
print( "Network error - download failed: ", event.response )
elseif ( event.phase == “began” ) then
print( “Progress Phase: began” )
elseif ( event.phase == “ended” ) then
print( “Displaying response image file” )
myImage = display.newImage( event.response.filename, event.response.baseDirectory, display.contentCenterX, 700 )
end
end
local params = {}
params.progress = true
network.download(
"http://docs.coronalabs.com/images/simulator/image-mask-base2.png",
“GET”,
networkListener,
params,
“helloCopy.png”,
system.TemporaryDirectory
)