1

How to upload an image or PDF files from smart devices to a specific folder on the server?

2 Answers2

1

A lil' too late for an answer but I was recently facing this one problem and solved by passing the image forward to the procedure and receiving as a blob data type.

Next I did the following:

parm(in:&blob)
&File.Source = &blob.ToString()
&File.Copy('path/to/file.jpeg')
&HTTPClient.AddFile('path/to/file.jpeg')

Hope it still serves you

0

You could create a Procedure object that receives an Image (images only) or a BlobFile (for any file type).

This Procedure will be exposed as a REST service when called from a mobile app, and the file upload will be performed automatically.

Then, with the image or PDF file already in the server, you can move it to the folder you want.

Marcos Crispino
  • 8,018
  • 5
  • 41
  • 59