FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WEBDEV 2024
→
Receive files with a webservice
Receive files with a webservice
Iniciado por trap, 11,sep. 2019 13:41 - 4 respuestas
Conéctese…
trap
#1
Publicado el 11,septiembre 2019 - 13:41
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
Informar
0
0
WindevCol
#2
Publicado el 11,septiembre 2019 - 15:02
you need to use MTOM in your webservice and send the file using that standard
Informar
0
0
trap
#3
Publicado el 11,septiembre 2019 - 16:58
Thanks, and with a REST Webservice?
Informar
0
0
WindevCol
#4
Publicado el 11,septiembre 2019 - 17:10
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.
Informar
0
0
Moiss
#5
Publicado el 11,octubre 2019 - 17:10
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,
Informar
0
0
→ Volver a WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto