PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 25 → Download de arquivo de um site
Download de arquivo de um site
Iniciado por Boller, 06,abr. 2022 16:02 - 1 respuesta
Miembro registrado
4.521 mensajes
Publicado el 06,abril 2022 - 16:02
//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/
Miembro registrado
4.521 mensajes
Publicado el 15,enero 2023 - 05:55
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/