Upload image in a mysql database


Joseph Caristena

Hi,
How to let the user upload an image in a mysql database ?

If we have a table field called "imageurl"
how can we upload an image ?

Is there any code sample ?

Thanks
Best

Joseph Caristena


decsoft

Hello Joseph,

All the HTTP related samples like "SimplePost" and "HttpClient" allow us to upload images or other files. You can also take a look at the "Camera*" samples, but the HTTP POST approach do not require any Cordova's plugin. What you get in the server is the image properly said. Normally we move the uploaded image/file to certain server directory, then we can know that directory + image URL.



Joseph Caristena

Hi,
When I import the Camera samples
a message appears:

"... need to be build with Apache Cordova..."

What does that exactly mean ?

Thanks
Best
Joseph Caristena


decsoft

Hello Joseph,

That means the Camera control is only available when the application is builded with Cordova and the Camera plugin, for example, ready for work in the Android platform.


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.