- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
8 Posted Topics
[CODE]<?php header('Content-type: image/JPG'); $username = "root"; $password = ""; $host = "localhost"; $database = "image"; @mysql_connect($host, $username, $password) or die("Can not connect to database: ".mysql_error()); @mysql_select_db($database) or die("Can not select the database: ".mysql_error()); $query = mysql_query("SELECT * FROM img"); while($row = mysql_fetch_array($query)){ echo $row['image']; } ?> [/CODE] that code display …
[CODE]<script> function asd(){ var msg = document.getElementById('email'); alert(msg); } </script> <form> <input type='text' id="email"/> <input type='button' onclick='asd()' value='<' /> </form>[/CODE] onclike return that message Object HTML Input Element
[CODE]public void send(String conn,String msg){ try { System.out.println("addres"); ClientSession cs = (ClientSession) OBEXConnector.open(conn); System.out.println("opening"); HeaderSet hs = cs.connect(cs.createHeaderSet()); System.out.println("created header set"); byte[] text =msg.getBytes("UTF8"); hs.setHeader(HeaderSet.NAME, "msg.txt"); hs.setHeader(HeaderSet.TYPE, "txt"); //hs.setHeader(0x49, text); System.out.println("putting...."); Operation po = cs.put(hs); System.out.println("put...."); po.openOutputStream().write(text); po.close(); cs.disconnect(null); cs.close(); System.out.println("closed..."); } catch (Exception e) { System.out.println("exception ="+e); } }[/CODE] …
hello [CODE]os=sc.openOutputStream(); os.write("hello".getBytes()); os.close(); sc.close(); [/CODE] i used these to send message form mobile to pc but it not work from pc to phone [COLOR="Red"]i used BlueCove version 2.0.3 on winsock [/COLOR] TNX
[B][COLOR="Green"]hi there how i can make a java application to descover for bluetooth devices and send message to it [/COLOR][/B]
that is code to send file from pc to phon but it dont run and throw that exception java.io.IOException: Device not discovered i dont know what is the problem [CODE]try { String adr ="btgoep://000E6D80ABBE:9" ; System.out.println("addres"); ClientSession cs = (ClientSession)OBEXConnector.open(adr); System.out.println("opening"); HeaderSet hs = cs.connect(cs.createHeaderSet()); System.out.println("created header set"); byte text[] …
[B]how i can send file in j2me over bluetooth i cant use the protocol OBEX to do that any one help me...... [/B]
i wont to send message to another mobile by that code : [CODE]public void send(){ try { String add = ((RemoteDevice) de.elementAt(l.getSelectedIndex())).getBluetoothAddress(); //url = "btspp://" + add + ":" + uuid; url=disa.selectService(uuid,ServiceRecord.NOAUTHENTICATE_NOENCRYPT, false); String mess = "wellcom"; n = (StreamConnectionNotifier) Connector.open(url); sc=(StreamConnection)n.acceptAndOpen(); os=sc.openOutputStream(); os.write(mess.getBytes()); os.close(); sc.close(); System.out.println(url); } catch (Exception …
The End.