473,396 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Saving image paths into mysql from j2me using phpconnection

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
10 2222
Dormilich
8,658 Expert Mod 8TB
execute the SQL query with the appropriate value for the image path.
Jan 17 '12 #2
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
8,658 Expert Mod 8TB
if you want it to be done in Java I can move the thread there. here is the PHP section.
Jan 18 '12 #4
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
8,658 Expert Mod 8TB
where is the thread?
this one here.
Jan 18 '12 #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
8,658 Expert Mod 8TB
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
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
8,658 Expert Mod 8TB
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
oh ok...i'll try it.thank you
Jan 19 '12 #11

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

Similar topics

10
by: mark | r | last post by:
anyone know a useful way of hiding image paths so images on my site cant be directly linked to? ive seen sites that use <img src="image.asp?/moo/fred/image01.jpg"> (where the path starts from...
6
by: bissatch | last post by:
Hi, I am currently writing a news admin system. I would like to add the ability to add images to each article. What I have always done in the past is uploaded (using a form) the image to a...
1
by: Dev | last post by:
Dear Friends, I am passing the image name, size (in bytes) and imgaeformat (like jpg or bmp or pdf) through the network. I want display the image into picturebox without saving image...
10
by: John Smith | last post by:
I know that uploading an image to a database has been covered, oh, about 3 trillion times. However, I haven't found anything covering uploading to a MySQL database with .net. Please don't...
1
by: hemashiki | last post by:
hi i inserted an image in mysql,by using BLOB type i wan to fetch..can anyone tell me,how to do this
1
by: berry | last post by:
Hi all, I am scratching my head on how to store image that user upload to the MySQL database in vb6? Please HELP me!! Thank you very much..
3
rajiv07
by: rajiv07 | last post by:
Hi to all, We can store image in mysql using MEDIUMBLOG data type.I want to know how to insert or select and store an image data type using perl. Is any idea Please Thanks. Regards ...
2
by: WellCom34 | last post by:
hey guys need a little help. i tried to save image into my database, it saves without error but when i tried to check if it saves in mysql, the data about my picture id save, but the image i save...
7
by: clarence8816 | last post by:
Hi, i have used this code to save my image directly from the web URL to mysql: $url=http://www.example.com/img.jpg $image = addslashes(fread(fopen($url","rb"),$filesize)); the $image is...
1
by: agarwalsunitadhn | last post by:
hi i am first time using blob files .When i use the blob file to diaplay data it is shown in binary format and i want to diplay that in image format.i am using the following code to extract image...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.