By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,591 Members | 650 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,591 IT Pros & Developers. It's quick & easy.

Saving image paths into mysql from j2me using phpconnection

P: 6
how can i save an image path to the mysql. i've build an mobile aplication using J2ME programming and use the PHPConnection for conenecting the application with the server. thanks for advice:)
Jan 17 '12 #1
Share this Question
Share on Google+
10 Replies


Dormilich
Expert Mod 5K+
P: 8,639
execute the SQL query with the appropriate value for the image path.
Jan 17 '12 #2

P: 6
how can i execute the sql? can u give me the example?:) i build the aplication in j2me.so the image was saved in byte[], because the image is captured from the camera. so how can i save the binary into the image path?please help me.thankyou so much:)
Jan 18 '12 #3

Dormilich
Expert Mod 5K+
P: 8,639
if you want it to be done in Java I can move the thread there. here is the PHP section.
Jan 18 '12 #4

P: 6
oww...sorry:( im too desperate.hehe where is the thread?give me the link and i'll wait ur advice there:) thankyou ^-^
Jan 18 '12 #5

Dormilich
Expert Mod 5K+
P: 8,639
where is the thread?
this one here.
Jan 18 '12 #6

P: 6
by the way, i want to give u the output when i execute the program.i built it from j2me and then send it to mySQL with PHPConnection. i was installed my application and succeed sent it from my phone (blackberry) to the server. the data was inserted to the database. but when i see the result from webpage, there are an alien language:p
like this:

‰PNG  ��� IHDR���������š���PLTEXŸž{4Š P��IDATx Bj D>Iwu A*.-w7@–di> Z6›V‹o‹Lo /‰–ZkmWEckFj~evf•d€}–$k *V2@‰? ~_i"i—+œ粶T–XICkI‡ŒWru_{ ~xVopƒįO– Vu]v;Œ:&”5 —Z '=HˆœJ_—:šKo5A<›tF53Itc) pmobm‹’;Œx:\ /µŒxJIwe<”v'miZSd]\ ]+‘•9)kNJZ.u[;r5dK <%tqHi*\9/V3ۼ†‹gˆ Wp–9˜;l›Zž!>kŠK-^Š{d‹Zž!>S’65…(œ*f‰955Ÿx9[IV€*nشF2<™‡V` ‰Ž\Rq'U:oVš3Gp†P‰%Ycyáfެ 5™gˆ‹8X*׸“Vn•4†n‰š+Q NIr3 -q’?Q9TqHtif—K™šŠgˆkU'%RZ9qWTx]%5‡’Zx†‰`%5'͵x‚xcRjˆfzCdi<’@k Zŵ•x‚xiˆUj`Fp%y/’\5RjœR@!qҨl™Tx‘’+’*mZV e U\‹a l6)rUiTœ%‰Zh8\š'FeD Z‹*™f dҨy†Xi9‹f\i`KjJ({w h3F›Œ;<8“bzTi9‰–U³jqq Uh/„ƒ7‡v–UM /8ٲCe”UM–+œTq–.7‡R8iU™ϰjy“’]s*⬧V7‰gX-U\-[U›p4/T*M;͡6H.XNsh& 9k…^sV†rŒ+„wR’VQ”,ۥ g(bzmN”g™B|Oz+*#i{]|YU‚v™B‰H{.8^)Ÿpqn;<-q)3ҽ.Wš“vis<#NR‹‚œu{‰dޫE9m-OQ5#i4I›-˪x$@l@|n밵UTKK]kI*tm†9/X5š*wám(5F!–Qs™ƒ\Qq•m9)5Ux•Zj c…ƒš\+iáPFk3”–9p#–›CJš\Y57 -9p&>EBݽ岤‘;-' *Z’kŸ+CZ–u6’|N#/‡’9SZiŸ ,Wֻ| 2‡V.nŸU<$$| jZŵH?v;^.fg<&PZj`UTj.”?= ‰Ÿ‘•8('2j†ˆ‰yy•q�.һe œe<&l|G+Í•yR Z`eI ly–143Vusq‹k%y&6P3%‡ ZcŽ\ 3*UuD\H—+‡5†Rrˆ^t氳 1J‘9jV*o󢦬p)͍1P Z œH@-se9č21= "s8ž‘jcj.9ll'=;nJ+jKž–R TsˆY'‰ D[ 2.526582 1.610548 17-01--2012 12:16:30


please help me
Jan 18 '12 #7

Dormilich
Expert Mod 5K+
P: 8,639
the alien data are the image data rendered as text. images in HTML are displayed via <img> tags.

btw. what exactly is PHPConnection? a J2ME class?
Jan 18 '12 #8

P: 6
How and where I can use the <img> tag?I don't know :( em,PHPConnection. Seems like a connector between J2ME and mySQL.its a web server.like servlet etc.:) but using PHP language.do u have a source code about my problem?help me:(
Jan 18 '12 #9

Dormilich
Expert Mod 5K+
P: 8,639
if you output HTML, images are displayed using the <img> tag (ref).

do u have a source code about my problem?
no, I don't
Jan 18 '12 #10

P: 6
oh ok...i'll try it.thank you
Jan 19 '12 #11

Post your reply

Sign in to post your reply or Sign up for a free account.