no i didnt know, can you move my question to this apachi forum ?
Type: Posts; User: doronbachar
no i didnt know, can you move my question to this apachi forum ?
FTPClient ftpClient = ftpLogin(ftpIp, ftpUser, ftpPass);
String time = ftpClient.getModificationTime(filePath);
ftpClient.logout();
ftpClient.disconnect();
i dont...
for the process i write this code, and its work (exe):
//return String of all process
public static String showProcess() throws Exception {
String line = null, xprocess = null;
...
ok
about my original question how add text in remote text on FTP:
after struggles its work now, maybe its will help others(i learn simple regex for this hh)
and read beforce i write (for saving...
yes i meant i never used GUI (haha i learn java a week or 2 ago, dont really care about this GUI) i just write a code and when im done i use blue4j to convert to exe (from jar).
but i try exec to...
when i do the program without swing, its mixed the main program and the program that called from exec together.
i try to do simple swing (jbutton) just for trying and main program and the program...
i did this code, i saw after i run it, its start the main program (like like he should) when eh get to this code her.
in task manager a.exe work, and the console of the main program print 2 lines...
Oh, stream got it, when i be near to my pc, i will send to you
like that ?
Process process = runtime.exec("C:/a.exe");
System.out.println(process);
if yes its return:
java.lang.ProcessImpl@1b6d3586
String adminlist = "ftp://user:pass@host/ss/adminlist.txt";
if(searchTxtFTP(adminlist, serial)) {
Runtime runtime = Runtime.getRuntime();
try {
runtime.exec("C:/a.exe");...
thank for helping so far.
i have question about exec (probably simple one):
Runtime runtime = Runtime.getRuntime();
try {
runtime.exec("C:/Program Files...
so, do you have idea for my problem ?
sorry, I havent been at the computer lately.
i tried some IO with append function not work.
this is the permission of the file text on the FTP its ok ?
rw-r--r--
i try also with...
Can you give me one that its constructor gets OutputStreamWriter and have this appending ?
im asking because my code do override.
i tried use write/append i know there BufferedWriter maybe with this ?
even thought maybe do reader to check if the line empty and after that do write (but i...
i see wht the problem i think.
i change to be before the url stuff, and now its print
try {
System.out.println(file.getAbsolutePath());
URL url = new URL(clientFolder);...
public static void ftpInsertImage(BufferedImage image, String clientFolder, File file) {
try {
URL url = new URL(clientFolder);
URLConnection con = url.openConnection();...
public static void ftpInsertImage(BufferedImage image, String clientFolder, File file) {
BufferedImage img = image;
String folder = clientFolder;
File f = file;
try {
URL...
i try delete my pic on my disk, i have the path in File file.
i do file.delete(), nothing happens, i read on the internet maybe because windows permission ?
w0w you dont believe it!!!!!!
i look a tree in google pic of OutPutStream
and sew very similar FilterOutputStream so i try instead of ObjectOutputStream.
its work!!!
thank you for notice...
i try to delelte this line with hex editor
now i see i can open the pic, but almost not see anything all red i sew little from the real pic (in Strange colors)
original:
FF D8 FF E0 00 10 4A 46 49 46 00 01 02 00 00 01 00 01 00 00 FF DB 00 43 00 08 06 06 07 06 05 08 07 07 07 09 09 08 0A 0C 14 0D 0C 0B 0B 0C 19 12 13 0F 14 1D 1A 1F 1E 1D 1A 1C 1C 20 24...
yes there differences! (in hex editor)
even without hex editor i saw the size, look:
original-> size: 148 KB (152,496 bytes) on disk:152 KB (155,648 bytes)
copy from the ftp: size: 149 KB (153,245...
i downloaded hex editor HxD
and open the pic, know what to do ? sorry for the ignorance
ok i will post and edit the code (but the way pastebin its not for download just fore view)
--- Update ---
edit, @Norm can you look please the code ?