- 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
[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 | |
Re:
Hi, I have a trouble: I want to send text from my laptop to Nokia N95 using bluetooth tecnology. This is my source: [code=java] ClientSession clientSession = (ClientSession) Connector.open(serverURL); [b]HeaderSet hsConnectReply = clientSession.connect(null);[/b] if (hsConnectReply.getResponseCode() != ResponseCodes.OBEX_HTTP_OK) { System.out.println("Failed to connect"); return; } HeaderSet hsOperation = clientSession.createHeaderSet(); hsOperation.setHeader(HeaderSet.NAME, "Hello.txt"); hsOperation.setHeader(HeaderSet.TYPE, … | |
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 … |