#1 2016-05-25 18:03:10

EGovMetrics
Member
Registered: 2016-05-21
Posts: 39

Upload image in a mysql database

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

Offline

#2 2016-05-25 18:15:36

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: Upload image in a mysql database

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.

Offline

#3 2016-05-25 18:33:42

EGovMetrics
Member
Registered: 2016-05-21
Posts: 39

Re: Upload image in a mysql database

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

Offline

#4 2016-05-25 18:35:05

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: Upload image in a mysql database

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.

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.