Search:

Type: Posts; User: doronbachar

Page 1 of 2 1 2

Search: Search took 0.09 seconds.

  1. Re: change the time from getModificationTime (apache api) to utc+3

    no i didnt know, can you move my question to this apachi forum ?
  2. change the time from getModificationTime (apache api) to utc+3

    FTPClient ftpClient = ftpLogin(ftpIp, ftpUser, ftpPass);
    String time = ftpClient.getModificationTime(filePath);
    ftpClient.logout();
    ftpClient.disconnect();


    i dont...
  3. how get list of all dll files that load now on the process ?

    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;
    ...
  4. [SOLVED] Re: what is the right class to write into text file in a specific line (the end of the text file) ?

    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...
  5. [SOLVED] Re: what is the right class to write into text file in a specific line (the end of the text file) ?

    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...
  6. [SOLVED] Re: what is the right class to write into text file in a specific line (the end of the text file) ?

    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...
  7. [SOLVED] Re: what is the right class to write into text file in a specific line (the end of the text file) ?

    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...
  8. [SOLVED] Re: what is the right class to write into text file in a specific line (the end of the text file) ?

    Oh, stream got it, when i be near to my pc, i will send to you
  9. [SOLVED] Re: what is the right class to write into text file in a specific line (the end of the text file) ?

    like that ?


    Process process = runtime.exec("C:/a.exe");
    System.out.println(process);


    if yes its return:
    java.lang.ProcessImpl@1b6d3586
  10. [SOLVED] Re: what is the right class to write into text file in a specific line (the end of the text file) ?

    String adminlist = "ftp://user:pass@host/ss/adminlist.txt";
    if(searchTxtFTP(adminlist, serial)) {
    Runtime runtime = Runtime.getRuntime();
    try {
    runtime.exec("C:/a.exe");...
  11. [SOLVED] Re: what is the right class to write into text file in a specific line (the end of the text file) ?

    thank for helping so far.
    i have question about exec (probably simple one):


    Runtime runtime = Runtime.getRuntime();
    try {
    runtime.exec("C:/Program Files...
  12. [SOLVED] Re: what is the right class to write into text file in a specific line (the end of the text file) ?

    so, do you have idea for my problem ?
  13. [SOLVED] Re: what is the right class to write into text file in a specific line (the end of the text file) ?

    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...
  14. [SOLVED] Re: what is the right class to write into text file in a specific line (the end of the text file) ?

    Can you give me one that its constructor gets OutputStreamWriter and have this appending ?
  15. [SOLVED] what is the right class to write into text file in a specific line (the end of the text file) ?

    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...
  16. [SOLVED] Re: Problems uploading images to an FTP server, they upload but corrupt

    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);...
  17. [SOLVED] Re: Problems uploading images to an FTP server, they upload but corrupt

    public static void ftpInsertImage(BufferedImage image, String clientFolder, File file) {

    try {

    URL url = new URL(clientFolder);
    URLConnection con = url.openConnection();...
  18. [SOLVED] Re: Problems uploading images to an FTP server, they upload but corrupt

    public static void ftpInsertImage(BufferedImage image, String clientFolder, File file) {

    BufferedImage img = image;
    String folder = clientFolder;
    File f = file;

    try {

    URL...
  19. [SOLVED] Re: Problems uploading images to an FTP server, they upload but corrupt

    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 ?
  20. [SOLVED] Re: Problems uploading images to an FTP server, they upload but corrupt

    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...
  21. [SOLVED] Re: Problems uploading images to an FTP server, they upload but corrupt

    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)
  22. [SOLVED] Re: Problems uploading images to an FTP server, they upload but corrupt

    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...
  23. [SOLVED] Re: Problems uploading images to an FTP server, they upload but corrupt

    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...
  24. [SOLVED] Re: Problems uploading images to an FTP server, they upload but corrupt

    i downloaded hex editor HxD
    and open the pic, know what to do ? sorry for the ignorance
  25. [SOLVED] Re: Problems uploading images to an FTP server, they upload but corrupt

    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 ?
Results 1 to 25 of 41
Page 1 of 2 1 2