Saving image paths into mysql from j2me using phpconnection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lucky Saragi
    New Member
    • Jan 2012
    • 6

    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:)
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    execute the SQL query with the appropriate value for the image path.

    Comment

    • Lucky Saragi
      New Member
      • Jan 2012
      • 6

      #3
      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:)

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        if you want it to be done in Java I can move the thread there. here is the PHP section.

        Comment

        • Lucky Saragi
          New Member
          • Jan 2012
          • 6

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

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            where is the thread?
            this one here.

            Comment

            • Lucky Saragi
              New Member
              • Jan 2012
              • 6

              #7
              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Á>Iw²ÿÏu øA*¿.üñ»º-w7@üª–diÔü>ñ«¤ ôZÕü6ñ›VË‹óÛÄo ²Â‹LñÛÄoª /¢å·‰ßÔò–íZkùmâW EckFj~øevfùâ ÷•dþ€ø}–Ì¿¯$ó Äïkùâ÷*Æüñû V2@ü¾‰? ~_iÌ¿"i—+œ¬§ø âç²¶T½–XIüñC kI®‡µåÕŒùâºW ruø_{Î~xVoÉÚp ¥åƒÄ¯OÉú°á– Våuø]ⱺv;ÜҁõŒ:ü& ñ”5¤Ëå —Z '=òHÕá·ˆ§Äœ¤»ìJ ø_—:š¥Ko5¿A<¥ Í›tÙÞðF²53ÍI»tØ ðcâ)íp©moóbm‹ Ö’;üŒxÊ:\ËÚ Þ /µ¬ÆüŒxJÞIÙÚw e¥Úð<ñ”v¸'mÉiîZ ÉÅÓÄSÚád]\ ]²+Ü‘•Æá9â)kNJZÞ ë.Ë®u[¹;¶r5dKã ¯Ü<%tqHi«*\ª åâ9/V3ËÛ¼è↋gˆ¯è W¢p–9˜;¬ål›Zž! >ÕkŠK-^ÔŠ{¬åd‹Zž!>S ’65Í…(œ*f9¬ ¹áââ55áŸx9[IÍV€*nØ´â¬F2´ <晇V`ŠωÌÉŽÓ\RqÖ'U :¼ñÌoVášÌ3ÄG¢ å°ãp͆PÖ‰%Ycyá fÞ¬Ã5™gˆ÷ºÃ‹¨8 XÜ*׸“VÈn•ª4®† nþ‰š+Qñ ñNIòr²3 -q’ð?Qµ9TqHtif —K™âšŠgˆkåU'¥%Ý RZâ9¼qWTéõx]%5‡’Æþ×Z®©x†¸Ð ‰£â`·%5'͵¨x‚xc ÖRjˆf¦zCdi´< Û’Ü@kØZæÄŵ•x ‚x±¥iˆUj`Fåp²%y «¹/Ð’\5RjœR±Ó@¦¹ !óq«º´Ò¨l™Tx ‘æ¾î’+ôÚ’*mZV± ¢e U\‹ÄÄaåÊ lÍì6)órUiTÝœ´% ͉ÖZh¥¦8Ø\겚' ºÆá¤Fe©DZî‹*Õ Íÿ²å™²f¦ ²¼dþÙÒ¨y†Xi9‹f \i`KjîJ({w ïìh³3ã¥FáÄÅ›öŒ; <áÒ8Ü“òbóÀzñÌ Ti9‰–U²Â³Ôjq ©ª¬q¹¸£½Uh/ï턃§7‡Èv–UóM â /¶8Ù²¶ÃCe¥å¤”Uó Mâ–+œTq–¬Ýá.7 ‡R8iU™ïϰ·íjy “Þ’]Þs*⬧VÍ7‰gX-U\ê-[U›pÅô4/T*ðMâ;Í¡Ë6·²ÖH .XÀNs¶®hù&ñ «9kï…^ÍòsVÀã†Ò r«¦¼µŒ¸+„wR’ÓV ãQø¹”,ÉÛ¥ ·¤å¤gßÑÍ(¬¤¿ b«zm¹ìN¸”g™B|O z+*æ#i{]|Y±Uá‚Æv™Bü‰H ÛÛåæ{.ô8½^Ø)ÄŸ pqèn;<-Öqã)Ä3Ò½µ.WíòÞ š“öviÃs<#NRØ‹ø‚ œuÒ{ÒÖ‰ÏdÞ« åE9m-O©ÚQ5°¥ñ¹¶#i4 I»›ðÂá-¯Ö˪x$½»´¥@l@ |në°µU½¤¹TæÛ ÎÚKKÍ]kI¶*tm¸Ã†¨ñ9/X5ך*¶wám(5ïµ FÍ!–¥QsÇ™ƒø\ QqÍ•m«9)5¥æUx •ZjÔÜc…ƒøÜšØ\+ iáìæPåæFk¹²3 ï”–ñ9ôöÎp#–› CJÅ¡\Y57¬íîð¿-9ÜÚp&>çâEBݽµå ²¤‘Å;-'« Ð*ÊáÚZ’kù§Ÿ+ CïZ–u6’|¨ÚN¸# /‡’9±SZ®¥·»Ìÿâi Ÿ ¬,Wµ·Ö»Û|ª¤ Ð2‡VÑ.nµ¦ùŸU<$¾ $Ý|ÛÊâ °jZŵHÍ?vóø;±Õ Àʬ°^.¥fùgÇ<&þ PZj`UT°j.”Ì?= ‰Ÿéð‘•8´(ºø' 2j†ˆ‰·¶y§y•q ¥�.Ò»ü¯e µœeÕ<&þÙlÔ|G+±Ã •yÕR Z`eIã ¯ìly–«å1ñ¦43ï Vuásq‹k%yµ£& 6P3µÝ%‡ÖèÀ¡ ZÅcâÕŽ\3*ëUuøDï Ê\H—Ü+‡5†ÒRòr ˆ^tíÆæ°³ â1ñJÓÙÕ‘9ÉjV* o󢦬p)µÀÚ͍¸£ ð1ñP¼á Z ìœHÕ@Æ-seª9´Ä2«ð1ñ= ·"sð8ž‘jcÅj.¥ª 9©©Ìl¹lË'Å=â;Ön ÞËJ+ÃjKÛž–¸R TsˆãY'‰¿¶æ°D[³ 2.526582 1.610548 17-01--2012 12:16:30


              please help me

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                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?

                Comment

                • Lucky Saragi
                  New Member
                  • Jan 2012
                  • 6

                  #9
                  How and where I can use the <img> tag?I don't know :( em,PHPConnectio n. 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:(

                  Comment

                  • Dormilich
                    Recognized Expert Expert
                    • Aug 2008
                    • 8694

                    #10
                    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

                    Comment

                    • Lucky Saragi
                      New Member
                      • Jan 2012
                      • 6

                      #11
                      oh ok...i'll try it.thank you

                      Comment

                      Working...