mahta moradzadeh

Greenhorn
+ Follow
since Jan 13, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by mahta moradzadeh

I found my mistake, i was sending wrong data from midlet
14 years ago
Hi all.
I used above code and created my image from data byte array :

while ((bytesRead = din.read(buffer)) > 0 ) {
// construct large enough array for all the data we now have
byte[] newData = new byte[data.length + bytesRead];
// copy data previously read
System.arraycopy(data, 0, newData, 0, data.length);
// append data newly read
System.arraycopy(buffer, 0, newData, data.length, bytesRead);
// discard the old array in favour of the new one
data = newData;

}

FileOutputStream f1;
File directory = new File("E:/Image/");
directory.mkdirs();
String path = "E:/Image/mayImage.jpg" ;

try {
f1 = new FileOutputStream(path);
f1.write(data);
f1.close();
} catch (IOException e) {
System.out.println("Problems creating the file");
}



the created image with name mayImage.jpg is not a valid image and its size is greater than original image size.
how you created your image form these data(maybe i do something wrong after reading data and writing in a file).
Thanks in advance!

14 years ago
hi all.

i have a problem with t:datatable and t:dataScroller.It work fine when i scroll in whole list.
my problem is when i filter my list with date.so a sublist will be shown.but when i click on paging number in dataScroller , the whole list reterive from db and the sub list is loss.
i use t:save state for resolve this problem but in some pages i get LazyInitializationException. how can i resolve this problem?
can anybody help me?

thanks.
15 years ago
JSF