PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 25 → Download de arquivo de um site
Download de arquivo de um site
Started by Boller, Apr., 06 2022 4:02 PM - 1 reply
Registered member
3,651 messages
Popularité : +175 (223 votes)
Posted on April, 06 2022 - 4:02 PM
//Exemplo de download de arquivo

If ffileexist(urlzip) = True

browserRunApp(urlzip)

else

info("arquivo nao encontrado")

end


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Registered member
3,651 messages
Popularité : +175 (223 votes)
Posted on January, 15 2023 - 5:55 AM
iNomeImg is Image
bufMyBuffer2 is Buffer
sEndImagem is string
cMyResponse is httpResponse

SOLICITACAO_HTTPis HTTPRequest

SOLICITACAO_HTTP..URL="http://crm.intellisys.com.br/IMG/Intellisys/Produtos/01.jpg"
SOLICITACAO_HTTP..Method=httpGet
SOLICITACAO_HTTP..ContentType=typeMimeJPEG

cMyResponse=HTTPSend(SOLICITACAO_HTTP)

Trace("Status Code: "+cMyResponse..StatusCode)

IF ErrorOccurred THEN
Error(ErrorInfo(errFullDetails))
ELSE
Trace("Conteudo: "+cMyResponse..Content)
bufMyBuffer2=cMyResponse..Content
END

IMG_transicao=dLoadImage(bufMyBuffer2)


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/