Zac Styris

Greenhorn
+ Follow
since Nov 04, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Zac Styris

Hi Guys

My requirement is to load a property file in to a JSP and then iterate the keys used in that property file. I used

<fmt:setBundle basename="bundles.loadbundle" var="bundles" scope="session"/>

to load the property file but i'm not allowed to iterate the keys using the following code

<c:forEach items="${bundles}" var="entry">
<c:out value="${entry.key}"></c:out>
<c:out value="${entry.value}"></c:out>
</c:forEach>

if would be great if anyone of you could help me on how to list all keys used in the property file and to iterate them.

Thanks
15 years ago
JSP
Hi I"m new to jaxb and i'm using j2sdk 1.4.2_06, My task is to refer an xsd and use my own java object filled with values to its properties and generate an xml.

I'm confused with the context path param in the below method.

JAXBContext.newInstance( �com.acme.foo:com.acme.bar� );

How am i suppose to generate jaxb.propertise file ? and what am i refering to from the context path ? Please help

Thanks
Thanks for the reply, i'll try that out.
18 years ago
Dear All

I'm having trouble appending a animated GIF image on to a J2ME form,the image displays but it doesn't animate, does anyone know why and a method to make this work ? The code i used is stated below

img =Image.createImage("/download.gif");
item = new ImageItem(null,img,item.LAYOUT_CENTER,null);
f1.append(item);


Thanks
[ February 03, 2006: Message edited by: Zac Styris ]
18 years ago
Thanks for the reply. Well i actually got it working by breaking the byte[] in to small 20kb chunks and sending one chunk n waiting for like 200 millisendons before sending the other one. now it works for me, if u dun wait for a while after each chunk again the channel gets stuck.

Yea i'm using J2SE with bluecove package in the PC side and a RFCOMM serial port connection.

Thanks
18 years ago
Hi All

I have a bluetooth phone application and a PC server appliction where i'm sending a picture taken from the phone to the server via bluetooth, i'm sending the image as an byte[] using dataoutput stream n receiving in an input stream, this method only excutes for small images like less than 40kb, and gets stuck for larger sizes, i'm really in need of sending images more like in the range of 600kb,someone please help me with this issue.

Thanks
18 years ago
Hi All

I have a bluetooth phone application and a PC server appliction where i'm sending a picture taken from the phone to the server via bluetooth, i'm sending the image as an byte[] using dataoutput stream n receiving in an input stream, this method only excutes for small images like less than 40kb, and gets stuck for larger sizes, i'm really in need of sending images more like in the range of 600kb,someone please help me with this issue.

Thanks
18 years ago
thanks, i managed to enlrage the picture. but i'm having problems, transfering that image as an byte[] on to the PC using output streams and input streams.The transfer comes in to a half in the middle can someone please suggest a method.


thanks
18 years ago
Hi there

I'm using a nokia 3230 phone and when i use the getsnapshot method to capture pictures, the default picture size that i get would be 160*120. I really need a bigger size image since i'm using that image for image processing task, please help.

Thanks
18 years ago
Thanks guys, Java.io just works fine n suits for wut i wanna do, thanks for helping again.

Rock on
18 years ago
Hi everyyone

I want to convet an byte[] which i've received from a mobile phone in to a image (jpg/png) after i receive it on the J2SE server end. Please some one help me with the method which i can just convert a byte[] in to a image n store it on the hard drive of the computer.

Thanks
18 years ago
Yes i just used basic code which i found from a book, it runs till a certain point and then gets stuck. When i put flags and ran the application found out that this particular method doesn't get executed or gets stuck while execution.



public void inquiryCompleted(int param) {

switch (param) {
case DiscoveryListener.INQUIRY_COMPLETED:

Form f = new Form("Inquiry Done");
f.addCommand(new Command("Exit",Command.EXIT,1));
f.setCommandListener(this);
Display.getDisplay(this).setCurrent(f);
f.append("Inquiry completed");

try {

String s = ((RemoteDevice)devicesFound.elementAt(0)).getFriendlyName(true);
f.append(s);

} catch (IOException ee) {

}
18 years ago
Thanks so much for the fast reply, isn't there any other way that i cud make it work without updating the OS ??
18 years ago
Hi there, i have created a small application from J2ME where i dicover the bluetooth devices in the area and displaying them.When i deploy the JAR file on to a nokia 6230i it works fine n displays information correctly, but when i install the JAR on to a nokia 6600 it gets stuck in the middle and doesn let the program exit even. some one please help me with this issue i can send u the code for u to check also. thanks so much
18 years ago