get an image from mysql in a pc

by Neri Martinez » Fri, 20 May 2011 09:30:37 GMT


Sponsored Links
 hi,

this proyect has 2 parts:

1) in a pc is a mysql server running. I wanna do a program that save an
image into mysql (i read that i have to use blob fields)
2) from my android device, i want to get that image from mysql (that was
uploaded by the program in the pc)

another question: is php the only way to connect and android device to mysql
server running in a pc via WIFI?

thanks !

-- 
Neri M. Martinez
Ingeniero en Sistemas de Computacin

-- 



Other Threads

1. help reading files by line

Hi all,
I'm fairly new to android.  I've been building a very basic SMS
application as a way to get to know the system but I'm having problems
reading a text file back into the app.

The code looks like so:

            FileInputStream inFile = openFileInput(SMSFile);
            InputStreamReader isr = new InputStreamReader(inFile);
            BufferedReader in = new BufferedReader(isr);

            String sender = in.readLine();
            String time = in.readLine();

            StringBuilder bodyBuilder = new StringBuilder();
            while(in.readLine() != null)
            {
                bodyBuilder.append(in.readLine());
                bodyBuilder.append("\n");
            }
            String body = bodyBuilder.toString();

            inFile.close();

The file is as follows:
            111213141516
            1221838163000
            this is yet another message
            with multiple lines
            three this time

The file will always have the number the message came from and the
time (as a UNIX time stamp) on the first and second lines.  The number
of lines after that is completely variable.

I've been able to read the number and time back no problem.  The
problem I'm having is that by using while(in.readLine() != null) I
lose a line from the buffer. So for this file the String body would
read "with multiple lines \n three this time"

Any input would be greatly appreciated.
Thanks,
V.

--~--~---------~--~----~------------~-------~--~----~

2. How enable horizontal scrolling?

Hello,

        My problem is that I can not to scroll horizontally. I have table
from several columns and all theses columns do not fit to screen. So,
I need to scroll it horizontally. I tried to use ScrollView, but this
view can scroll only vertically.
        So what I must to use, that I can scroll my data horizontally?

Ramunas

--~--~---------~--~----~------------~-------~--~----~

3. Live broadcast for tomorrows (Sept 23) announcement - Anywhere?

4. unregisterReceiver() error??? mean???

5. Live broadcast for tomorrows (Sept 23) announcement - Anywhere?

6. Gears for Android?

7. How to understand and use a reference information (esp, class Hierarchy)