Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4android > Basic4android Getting started & Tutorials
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Basic4android Getting started & Tutorials Android development starts here. Please do not post questions in this sub-forum.

Connect Android to MySQL Database Tutorial

Reply
 
LinkBack Thread Tools Display Modes
  #111 (permalink)  
Old 02-16-2012, 12:09 PM
Junior Member
 
Join Date: Jan 2012
Posts: 11
Default

Hi Erel..


Do not asp.net yet ;-)

But found the solution with classic ASP

See post

http://www.basic4ppc.com/forum/basic...html#post81564
Reply With Quote
  #112 (permalink)  
Old 03-09-2012, 09:24 PM
Newbie
 
Join Date: Mar 2012
Posts: 1
Default

whhuy? a can't download attach
Reply With Quote
  #113 (permalink)  
Old 03-10-2012, 04:54 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

This file is only available to licensed users.
Reply With Quote
  #114 (permalink)  
Old 03-11-2012, 10:51 PM
Junior Member
 
Join Date: Mar 2012
Posts: 34
Default

Trying to make an app that connects to a database, but the log keeps containing this error - Error: java.lang.IllegalArgumentException: Host name may not be null, StatusCode: -1

What does this mean exactly? I'm still completely new to this program, so can someone explain to me what it could mean is wrong?
Reply With Quote
  #115 (permalink)  
Old 03-12-2012, 06:47 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Have you included "http://" in the Url?
Reply With Quote
  #116 (permalink)  
Old 03-12-2012, 08:14 AM
Junior Member
 
Join Date: Mar 2012
Posts: 34
Default

Quote:
Originally Posted by Erel View Post
Have you included "http://" in the Url?
Yes.
Reply With Quote
  #117 (permalink)  
Old 03-13-2012, 07:48 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

See my answer in the new thread you started.
Reply With Quote
  #118 (permalink)  
Old 03-29-2012, 10:20 PM
Junior Member
 
Join Date: Oct 2011
Posts: 30
Default mysql to bitmap

Hello, I had previously built the database (sqlite) and I used cursor1.getblob, now I have moved all from mysql server with php, but how do I transfer the photos because I like Null response from mysql? If I find as I look at mysql BLOB Binary Data


Sub hc_ResponseSuccess (Response As HttpResponse, TaskId As Int)
Msgbox("server Connect!","")

'VARIABILI TABLE SERVIZI
Dim IDArtista,Cognome,Nome,Pseudo,Nazionalita,TipoArti sta,DataNascita,FotoArtista As String


Dim res As String
res = Response.GetString("UTF8")
Log("Response from server: " & res)
Dim parser As JSONParser
parser.Initialize(res)
Select TaskId
Case Artiste_list
Dim VerfArtista As List
VerfArtista = parser.NextArray
For I = 0 To VerfArtista.Size -1
Dim M As Map
Dim InputStream1 As InputStream
Dim Buffer() As Byte
Dim Bitmap1 As Bitmap

M = VerfArtista.Get(I)
IDArtista=M.Get("IDArtista")
Cognome=M.Get("Cognome")
Nome=M.Get("Nome")
Pseudo=M.Get("Pseudo")
Nazionalita=M.Get("Nazionalita")
TipoArtista=M.Get("TipoArtista")
DataNascita =M.Get("DataNascita")

Buffer = M.Get("FotoArtista")
InputStream1.InitializeFromBytesArray(Buffer, 0, Buffer.Length)
Bitmap1.Initialize2(InputStream1)
InputStream1.Close




ListaArtiste.AddTwoLinesAndBitmap2(Pseudo,Nazional ita,Bitmap1,IDArtista)

Next
Reply With Quote
  #119 (permalink)  
Old 03-30-2012, 05:56 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The response from the server returns as string. You will need to convert the bytes array to base64 string in the PHP script.
Reply With Quote
  #120 (permalink)  
Old 03-30-2012, 09:10 AM
Junior Member
 
Join Date: Oct 2011
Posts: 30
Default

I do not know php, for this experiment I used your php code, you can post some sample code?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Android JSON Tutorial klaus German Tutorials 0 02-11-2011 10:31 PM
Android Serial Tutorial klaus German Tutorials 0 01-26-2011 09:05 PM
connect to mysql server from device encolo Questions (Windows Mobile) 5 08-30-2010 04:50 PM
How To Connect Basic 4ppc With Mysql ? jothis Questions (Windows Mobile) 2 05-18-2010 09:50 PM
connect or sync database in PPC from Desktop kalmenchia Questions (Windows Mobile) 1 01-09-2010 08:41 AM


All times are GMT. The time now is 10:35 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0