Win a copy of Head First Android this week in the Android forum!

Adrian Lee

Ranch Hand
+ Follow
since May 10, 2007
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Adrian Lee

Hi everybody.(I'm not sure if this is the right place to post. If I'm wrong, please pardon me.)

I would like to create a project on Home Surveliance Camera with some additional services. But I'm not sure on how to do it. Would be grateful if someone can advice me on how to start this.

A digital/network camera will be installed in a room.
1) The camera can only be access/controlled by the home user which means outsiders cant access and control the digital/network camera.
2) However, The home system can provide/send a Live streaming video to the Service provider for processing/checking.

Thanks in advance. Have a nice day.

Adrian Lee
13 years ago
I've found another method to go through this. Thanks for your help.

13 years ago
Hi Brian and thanks for clearing my doubt on ImageIcon. My code is rather long, so I'll just post some of it here.

Basically, I'll call a socket program to do a download of images whenever I require. Everything is running smootthly except for the ImageIcon refresh part.

I'm still trying to figure out why my ImageIcon on the label can't be refreshed.
[ April 28, 2008: Message edited by: Adrian Lee ]
13 years ago
Hi Brian. I'm trying to reuse the ImageIcons that I've created previously. Somehow the whole thing don't work for me. Even though the images has been overwrite, my UI program still displays the old images.

Can the ImageIcons be reused?

Thanks for your reply.
13 years ago
Hi everyone. I need your help in clarifying some of my doubts, hope you can help me out.

I've created a java program which download images from the server. After the download is complete, the program will create another UI displaying the downloaded images.
I'm able to repeat the downloading process, each time downloading different images.
The images is displayed correctly on the first attempt. However, on the subsequent download, the image displayed on the UI wasn't refreshed although the image in the system has changed.

My question is :
1) Can I set/refresh the same ImageIcon which I've created/used earlier?

Thanks in advance
13 years ago
Hi Balasubramanian and Kelvin. Thanks a lot for your replies. Will look at the links given.

Thanks again!
13 years ago
Hi everyone. I'm trying to build a java program to send AT-Commands to my GSM modem. Is there anyone that has experience on this?

I've looked up through google, but cant seem to find a working example which I can use as a reference.

What I'm hoping to do for my project is to able to send a short SMS from my GSM modem to a mobile phone and vice versa. At this point, I've already found the AT-Commands to acheive the sending of sms through GSM modem. However, I'm only able to run the commands through Hyper Terminal.

Thanks in advance for your help.

Adrian Lee
13 years ago
Sorry if I'm not clear in explaining.

Erm, basically I'm trying to make my client and server program communicate first.

The client will send a password string to the server. The server upon receiving the String, it will check if the client has the correct password. Checking that it's correct, it will proceed to the next step which is the file transfering/downloading part.

I'm just wondering if all this can be done in a single socket without resetting or closing the socket connection?

Thanks for your patience and help in guiding me.
14 years ago
Hi Stan. I've browsed through the tutorial. But I don't see any examples that uses both BufferedReader and BufferedInputStream. I already have some working examples in hand.

I would like to know whether is it possible to use a socket to transfer both character-input stream and file output stream at different time.

Thanks for your help.
14 years ago
Hi everyone. I'm currently troubleshooting my java program,

I'm trying to link 2 working java programs together.

First program, Client and Server would communicate with each other using PrintWriter and BufferedReader. The program will check whether Client has the correct password to access to the server.

When granted access, second portion of the program will run. This program is a file transfer program. It's using BufferedInputStream and BufferedOutputStream to read and write the stream.

I would like to know whether BufferedReader and BufferedInputStream have any conflict with each other? Would there be any problem if i'm using 1 socket to do all this? In future, I will be transfering more than 1 file.

Please advice. Thanks in advance!
[ October 10, 2007: Message edited by: Adrian Lee ]
14 years ago
Ulf, Thanks for being very helpful!
14 years ago
Hi again guys. Sorry, I don't quite understand on how I'm able to do this.

And there's some things I'll need to clarify.

Since the JAR file which is supposed to be downloaded to the client system is stored in eg. (d:/download).

1) Does it mean that I need to make the file into DataOutputStream?
2) Is it similiar to socket programming which I'll need to open a socket in order for the file download to start?

Thanks in advance
14 years ago
Thanks Ulf for your help.
14 years ago
Hi Ulf. I was told that I'll need to use a signed applet in order to access the client file system.

In this case, I'll need the downloaded file to be placed in another folder without the user choosing the place to download to.

I've tried looking for applet file download. I've managed to find some which is trial programs but I'm not able to modify them.
[ October 01, 2007: Message edited by: Adrian Lee ]
14 years ago
Hi everyone. As this is my first time doing applet. Please be patient with me.

I'm in the process of building a JSP project that allows a JAR file to be downloaded from server to client. Inside this applet, it will state the path on where to download the file to.

I hope this doesn't sound too much..

Does anyone have some kind of example of this applet which i can learn from? The examples that I've found does not allow me to looked into their contents.
14 years ago