Where is the samples uploaded/posted images and data saved?


Ade Wale

Hi David,
I was just playing with camera 3 sample project and I took picture and upload.
Where is the image uploaded?


DecSoft

Hello Ade,

Hi David,
I was just playing with camera 3 sample project and I took picture and upload.
Where is the image uploaded?

Certainly the "Camera*" samples upload the Base64 representation of the captured image into my own server, however, I just return the same Base64 string (as you can see) and never save the image in the server. This is also valid for any other upload/post sample. The samples' server just reply like an "echo" with the uploaded/posted data, but do not save any data into the server.

Is this what you want to know Ade?



Ade Wale

Hi David,

Yes and also can you share ready-made PHP script for uploading images on the server.

eg. Something we can just specify the url and the folder name of where the images will be uploaded.


DecSoft

Hello Ade,

In this StackOverflow thread we can find some possible approach in PHP. Certainly just one function can do the job:



Ade Wale

Hi Ade,

Alright, good. what about PHP script function for uploading the converted image on to the webserver after conversion?


DecSoft

Hello Ade,

What the server receives is the Base64 string. If we pass that string to the above "base64_to_jpeg" function then the image is saved in the specified "output_file".



Ade Wale
Hello Ade,

What the server receives is the Base64 string. If we pass that string to the above "base64_to_jpeg" function then the image is saved in the specified "output_file".


Alright thanks.


DecSoft

Hello to all,

I forget this thread... I only want to say, that, thanks to some more or less recent addition into the Camera control and the CameraDataToImage action, we can now send the Camera's captures as image files using an HttpClient control. Look at the "Camera5" sample to view this last stuff working. We can continue working with "Base64" strings, but, work with files is now possible too.



Ade Wale

Hi David,

Thanks for the information.

Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.