GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WEBDEV 2024
→
Receive files with a webservice
Receive files with a webservice
Iniciado por trap, set., 11 2019 1:41 PM - 4 respostas
Conecte-se…
trap
#1
Publicado em setembro, 11 2019 - 1:41 PM
How to save files sent via HTTPSendForm on a Web service developed with WEBDEV or WINDEV?
I send my data with multipart/form-data
thanks in advance
Denunciar
0
0
WindevCol
#2
Publicado em setembro, 11 2019 - 3:02 PM
you need to use MTOM in your webservice and send the file using that standard
Denunciar
0
0
trap
#3
Publicado em setembro, 11 2019 - 4:58 PM
Thanks, and with a REST Webservice?
Denunciar
0
0
WindevCol
#4
Publicado em setembro, 11 2019 - 5:10 PM
NO for that (use MTOM) you need to use SOAP, i would not recommend to use REST specially when you are transferring Binary Data. there are 1000 reasons for that.
Denunciar
0
0
Moiss
#5
Publicado em outubro, 11 2019 - 5:10 PM
Hi!!!
For the sending of files, either rest or soap, if you are sending images it would be better if you sent it as jpg with 80% quality that greatly reduces the size of the file, you have to encode or serialize.
And in the webservices deserialize or decode.
https://help.windev.com/en-US/index.awp…
/// Webservices ////
bufPhoto is Buffer = Decode (vMyjson.fotos [idx2] .photo, encodeBASE64URL)
fSaveBuffer (sPathfoto, bufPhoto)
/// Image Encoding ///
image is Image
image = fLoadBuffer (qry_fotos.PathFoto)
// sFilenamedest =
bufPhoto is Buffer = dSaveImageJPEG (image, inMemory, 50)
sPhoto = Encode (bufPhoto, encodeBASE64URL)
Regards,
Denunciar
0
0
→ Voltar para WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto