Where is the captured image name in the Camera2 sample application


Ade Wale

Hi,

How do you name the picture the taken before upload to the web server?

Thanks


decsoft

Hello Ade,

There is no name associated to the captured image, then you can simply choose whatever name you wanted, in the client side or in the server side.



Ade Wale
Hello Ade,

There is no name associated to the captured image, then you can simply choose whatever name you wanted, in the client side or in the server side.

Hi David,

I have choose name from the server side e.g

$imgFileName = 'upload_images/'. date('Y-m-d-H:i:s') .'.jpg';

But I am not sure how to get it on the client side at the moment.


decsoft

Hello Ade,

If I am not wrong we can't get it at the client side. We are not choosing an image (with the File input control, for example) but captured a new one. What the Camera control offers to us is the Base64 representation of the captured image and nothing more, then the name of that capture is up to us and we can assign any name. If you want to establish it in the client side, just prepare your own one and send it to the server in addition to the Base64 text.



Ade Wale
Hello Ade,

If I am not wrong we can't get it at the client side. We are not choosing an image (with the File input control, for example) but captured a new one. What the Camera control offers to us is the Base64 representation of the captured image and nothing more, then the name of that capture is up to us and we can assign any name. If you want to establish it in the client side, just prepare your own one and send it to the server in addition to the Base64 text.

Alright, that is what I will do.

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.