Upload Picture in Android to MySQL database - php

I currently develop a registration form with profile picture. The user need to browse the picture from gallery and select one from there as profile picture. After that, the user will submit the form through HTTP post to insert the whole information into MySQL database using PHP script.
Now, I facing problem in create a form to upload the picture in my android emulator. I co not know how to create one.
Currently, I using SDK 10 for android version 2.3.3.

Check this tutorial. It will help you: http://www.coderzheaven.com/2011/04/25/android-upload-an-image-to-a-server/

Related

How to update data in my xamarin forms app using php script, mysql and webservice?

I've created a profile page as you can see beneath. I've also made a edit profile button at the end of the page but i would like that this button works. I have also a database(MySql) connected to my app which i'm using for registration and login, so i was wondering if it's possible to edit user data (username, email and age) with a php script? What is important to know: when the data is edited, it has also to be updated in the database automaticly.
Could somebody help me with this or does somebody have some example code or URL?
Thanks!

how to move a file(image) from users android device to the database?

I just want to know how can I make the user to browse the image and then save it to the database for example i want to store the user profile picture in some android application. I am using php as the server side language.

Workflow for photo upload with login and photo display online

Hello I am working on an educational app just for my own learning where a user can login, upload photos, and then have them display on a website. I am a little confused on the general idea of how it should work. I know this isn't the best place for this type of question but I can't find it anywhere else.
Basically I want a user to be able to login with something like OpenID and then upload a photo ( I am using phonegap and thus they would use the Phonegap API to do this and I understand the mobile side here ) to a server and then have be hosted on the server and be able to have a user's photos displayed together.
Do I need to have each photo be submitted to a database and if so how would I store the photo info? If you have any input it would be appreciated I am a little lost. I know php for the server side I just don't know what to do.
Do I need to have each photo be submitted to a database
Only if you want to, you would have the base64 encode it or store it as a blob though. Your best bet would be to store the image somewhere on your server outside of the database and instead store its address or path in a database along with a unique ID.
how would I store the photo info?
What photo info, the exif data? Or are you talking about additional general information? (date it was uploaded, user that uploaded it, etc etc) Either way, you would make a column in the database table for each chunk of data you want to store.
For example, if you wanted to store the date each photo was uploaded and which user uploaded it, you would set up columns in such a way that a row in the database that look something like this:
(columns) id photo user date
(row) 58 uploads/img58.jpg myuser192 1338483324
as for actually getting the photos on your server, perhaps you could use an html5 friendly solution like Uploadify

Auto generate PHP page for Facebook open graph

I'm trying to build an app on Facebook where users can upload their images, share it on their wall and get their friends to 'Like' their photo.
I'm not pretty sure how to do it, I have a page where a user uploads their picture and I would like them to have their own page upon picture uploaded so that their Facebook friends can 'Like' it.
Can I have 1 page with values or do I need to auto generate for each users?
This is like a Photo Contest.
You could use mysql database to store the data and call it using php when you want to see it, you will only have to create on page, and can automatically update itself when someone uploads a new picture, send to facebook and then store that data into the database so that it can easily be referenced again.

openGraph API - How do i store profile image in mysql

I have a legacy registration system , whic takes a file input as a field for the user to upload their profile picture. I am now using opengraph to supplement this system. I am able to connect successfully, but am stuck at how to connect the to the link of the picture that i get from facebook.
Any ideas
http://graph.facebook.com/the-username/picture alway redirects to the picture in thumbnail
here for a larger version:
http://graph.facebook.com/username/picture?type=large
you can also do an fql query in the user table for several fields which are listed here:
http://developers.facebook.com/docs/reference/fql/user

Categories