Implementing FTP SIZE command

HI
I am trying to implement the SIZE command in FTP. The RFC says that the return value of the SIZE command will depend on the current STRUCTURE , MODE and TYPE of data connection. However, it doenot say how . I have not been able to find anything on the net either. Does anyone have a working implementation of the SIZE command , taking into account all the above mentioned factors, or any idea of how the above factors affect the SIZE command return value? Any help would be highly appreciated.
Thanks in Advance

hi
try getLocation() on each button. save this to file and when opening read the file applying the saved values to setLocation(...).
try using perhaps property/value pairs for saving the values like this:
firstbutton=0,0
secondbutton=2,2
then load this as a Properties object and apply the Point values
Takis

Similar Messages

  • FTP STOR command with REST capability

    Hi folk,
    I have a cRIO on a remote field, and I need that the program running on that platform periodically uploaded, through the internet, the data files to an FTP server.
    I have used the FTP VIs included in the Internet Toolkit to develop this functionality and I am experiencing some problems.
    During the uploading of files of medium or large size, via FTP, can happen that the FTP server closes the connection.
    The reasons can be different, network operation exceeded the user-specified or system time limit, bandwidth usage is restricted or the bandwidth is limited, etc..
    To overcome this issue the correct strategy is to reopen the FTP connection and to restart the upload from the point where it was interrupted.
    It is very important to finish to upload only the remaining part of the file, and not to restart from the beginning, otherwise you could not end the upload if the FTP server closes the connection again and again.
    For implementing the resume, the FTP protocol supports a number of commands:
    SIZE <remote file-name>  Returns the size of a file (Binary mode) .
    REST <file-size>         Sets the following STOR command to restart transfer
                             from the specified point.
    STOR <remote file-name>  If anticipated from a REST command, store (upload)
                             only the part of the file starting from the
                             specified point.
    At the present, it seams to me that the LabVIEW Internet Toolkit does not support the capability of FTP resume.
    Furthermore, if during a FTP upload the connection is closed by the FTP server, the FTP [STOR].vi exits sometime with ambiguous errors.
    Exit with a correct error:
    Error 56 occurred at TCP Read in NI_InternetTK_Common_VIs.lvlib:TCP Read xTP Reply.vi:2->NI_InternetTK_FTP_VIs.lvlib:FTP Get Command Reply.vi:1->NI_InternetTK_FTP_VIs.lvlib:FTP Data Send.vi->NI_InternetTK_FTP_VIs.lvlib:FTP [STOR].vi
    Possible reason(s):
    LabVIEW:  The network operation exceeded the user-specified or system time limit.
    Exit with an ambiguous error:
    Error 54 occurred at TCP Open Connection in NI_InternetTK_FTP_VIs.lvlib:FTP Open Data Connection.vi->NI_InternetTK_FTP_VIs.lvlib:FTP Data Send.vi->NI_InternetTK_FTP_VIs.lvlib:FTP [STOR].vi
    Possible reason(s):
    LabVIEW:  The network address is ill-formed. Make sure the address is in a valid format. For TCP/IP, the address can be either a machine name or an IP address in the form xxx.xxx.xxx.xxx. If this error occurs when specifying a machine name, make sure the machine name is valid. Try to ping the machine name. Check that you have a DNS server properly configured.
    Do you have idea or suggestion of how  realize an FTP STOR command with REST capability?
    Thanks,
    Asper

    Unfortunately the best advice I could give you would be to make a copy of the FTP toolkit and add this functionality yourself. You should have most of the building blocks available to you so it should be fairly starightforward. You could reference the RFC (RFC 959 and RFC 3659 for extensions) for any specifics you need on the packet format. You will need to save some state information so you can resume your download from the correct point.
    Would it be possible to use TFTP? This is much leaner and more likely to succeed if the other ends supports it. I recently wrote a very basic TFTP Write. I'm sure I could do the TFTP Read in short order. I'm still working on packaging it up in a distributable form but I could provide you with a basic VI if needed.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Announcing FTP Quote Command Deprecation

    Hi Everyone,
    Deprecations to FTP Commands
    Oracle CM SDK provides several FTP quote commands to change system behavior via the FTP protocol.
    Due to the fact that we have not found them as useful as originally planned and that they add unnecessary complexity to the FTP protocol server, we have decided to deprecate the following FTP Quote commands in this release.
    - QUOTE ACL
    - QUOTE NOACL
    - QUOTE ADMIN
    - QUOTE NOADMIN
    These commands will be deleted from future releases of Oracle CM SDK.
    Regards,
    Simon Azriel
    Principal Product Manager
    Oracle Content Management SDK
    Oracle

    We need to FTP outbound (IBM Mainframe) and configure data block/window size before putting files. Any ideas?
    Thanks
    Rogerio

  • Image Size Command!

    I really need help I try to change an image size and it just says "Couldn't complete Image Size Command because not enough memory (RAM)" how can I fix it?  

    Try reducing the ppi. What is happening is the pixel dimensions are getting so large that you just don't have enough memory to handle that size of a document. So a larger document would mean a smaller ppi to effectively keep the pixel dimensions down.
    inches x ppi = pixels
    pixels / ppi = inches

  • "Could not complete the image size command because the file name was not valid"

    Hello,
    Some one please help me,when i try to resize psd file its showing this message ...whats the issue ???
    "Could not complete the image size command because the file name was not valid"
    Thanks !

    Can you change other images via Image > Image Size?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by pressing command-alt-shift/ctrl-alt-shift while starting Photoshop until the appropriate dialog appears after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)

  • FTP Sub Command: Local Error with EasyDMS

    We have been using DMS for several years.  We have a vault setup and are able the checkin files with FTP via SAPGUI with no problems.  Recently we have been looking at EasyDMS.  We have it installed and can login ok.  When we try to drag a file into the windows explorer the popup appears and we can enter the META data.  When the file is checkin via FTP we get FTP Sub Command: Local Error.
    Any suggestions would be appreciated.

    Tom,
    We have encountered the exact same siituation with EasyDMS, we currently have had an OSS call to SAP for 2 weeks that ended up with the developers in Germany and bouncing the issue back to technical support and stating that they have no idea!
    We are also interested in an answer, sorry I can't help you, but you are not alone.

  • Very urgent,  how to implement FTP in LAN

    Dear All,
    Im in developing a project for my college final year project submission im stuck up with , implementing FTP in LAN .
    Here what im doing is sending data thro FTP in LAN network . but i couldn do it .
    I need help from you to solve this query .
    Pls help me with method and ideas to finish it.

    Your post leaves much to our imagination.
    I assume you are looking to develop your own FTP service. I don't know if this should be peer-to-peer, or client-server. Do you need both components?
    Sun provides basic service classes in the sun.* package - though there is a warning not to use them, as they are not a supported component of Java - meaning the methods may change from update-to-update or the class may disappear.
    There are two types of FTP. Full-strength standard FTP and one based on UDP transport called TFTP.

  • Mac "expect" function cannot work properly with ftp "!" command

    Lastly I have written a Expect-TCL script on Linux to automatically download log files from my company network device I have ever made used of ftp command “!” to go back to linux local to create directory with appropriate name for storing downloaded files.
    However, I found that when I use the same Expect-TCL script on my Mac, I found that the Expect script will stuck at ftp “!” command without proceeding onward. Here below is the command output with my sample experiment.
    BMBP:_Practise boyce$ expect sample-ftp.exp
    spawn ftp 127.0.0.1 21
    Connected to 127.0.0.1.
    220-Welcome to Boyce BMP FTP
    220 CrushFTP Server Ready!
    Name (127.0.0.1:boyce): boyce
    331 Username OK. Need password.
    Password:
    230 Password OK. Connected.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> binary
    200 Command ok : Binary type selected.
    ftp> verbose
    Verbose mode off.
    ftp> !
    bash-3.2$
    quit
    exit
    ^CBMBP:_Practise boyce$
    Here below is my sample script to test ftp “!” command:
    BMBP:_Practise boyce$ cat sample-ftp.exp
    #! /usr/bin/expect
    Default Settings
    set site "127.0.0.1"
    set port "21"
    set dirListFile "dir_list.txt"
    set sdUserName "boyce"
    set sdUserPwd "boyce"
    Launch a FTP session to SD
    set timeout 60
    log_user 0
    spawn ftp $site $port
    expect "Name" {send "$sdUserName\r"}
    expect "Password:" {send "$sdUserPwd\r"}
    expect "ftp>" {send "binary\r"}
    expect "ftp>" {send "verbose\r"}
    expect "ftp>" {send "!\r"}
    expect "(.*)" {send "ls\r"}
    exit
    Have you ever tried “!” command from expect script? Should it be classified as a bug on Mac Expect and do you know is there any patch available to fix such problem?

    Try posting this in the Unix Forums.

  • How to implement FTP transmission scenario

    Hi everybody!
    Sorry, this is a rather long post, but I think the scenario is pretty complicated...
    I have to implement an exchange of flat file data using the FTP protocol. I do not think this is possible using the standard FTP adapter, since there are some difficulties in the procedure:
    First of all, the communication partner is a host-based system that only "simulates" an FTP server. The actual transmission steps are:
    1) Connect to the host using username / password
    2) Send a host-specific command using the 'site' command, i. e. something like (in MS-DOS like ftp syntax): 'quote site xyz=123'
    3) Send a special ticket-file which contains additional instructions to the host-system
    4) Send or receive an FTP file using the conventional 'PUT' or 'GET' commands.
    As far as I can tell, this has to be done using ordinary ABAP programming - no problem there. But how can I bridge the gap between my ABAP program and XI messaging?
    Should I create an ABAP job, read the data and somehow post it into the XI queue (how?) (inbound direction only)?. Should I start a workflow and pass the data to it (how?)?
    Should I create a business workflow and start an ABAP program within this process (how?), starting this workflow via job scheduling?
    I must admit I'm at a loss here. Any suggestions from you?
    Best regards, Joerg

    Hi everyone!
    Thank you for your suggestions. I have considered this for a while and there still are some open questions...
    First, I have to elaborate a bit on the specific scenario: There is an external host system, which is only accessible using FTP. The "standard" FTP adapter of XI is useless, since there are several non-standard steps involved which are not supported in the standard.
    The XI system will be the only system "allowed" to communicate with the host - due to network and firewall restrictions.
    The data from the host system will have to be processed by a backend SAP system. This R/3 system (release 6.20) will only have a connection to the XI system. There is a RFC FM for this purpose.
    So if I follow your suggestions, I would have to do the following:
    1) Import the RFC FM from the R/3 backend into XI
    2) Generate a suitable interface spec. for this RFC along with mapping objects, etc.
    3) Create an ABAP server proxy for this RFC
    4) Create an ABAP client proxy for this server proxy
    5) Create a report that will download the data from the host system and "post" ist to the XI message queue using the client proxy from step 4)
    Sounds a bit strange -  is this really a useful implementation?
    Regards, Joerg

  • ASCII Mode Connection & FTP LIST command

    Hi All,
    I want to realize a simple Java FTP Client. At the beginning I tought to write a dir/file listing method, but I have no less difficulties to do it.
    As RFC says LIST is the appropriate command to be implemented.
    As I read RFC I should to open an ASCII Mode Connection but I don't know How.
    Connecting some ftp Server and sending it a "LIST" command I receive these replyes:
    331 User name okay, need password.
    230 User logged in, proceed.
    150 Opening ASCII mode data connection for /bin/ls.
    426 Data connection closed, transfer aborted.
    So, after 150 I should receive directory content, but it doesn't work. On the other side, if I want to send "HELP" command, using readLine() method I can display all reply from server.
    How can I make directory listing for my FTP Client?
    Thanks a lot...

    I prefer fireftp, but yea thats what I use to do any sort of ftp with the crio. At the time I was testing it I was able to log onto the ftp server of the crio, list directory and do get and put operations. Good to hear its working fine for you though.
    Looks like the device is having problems now (has become completely unresponsive) and is deployed 350 miles from here so we have some new problems to deal with. Maybe it was the device, I am not sure but I guess this is on hold until the device is back up.
    [will work for kudos]

  • Ip ftp username command fails

    I am trying to set up the default ftp username and password but get the following error. Can't see any reason for it and checked the manuals.
    mensa# config t
    Enter configuration commands, one per line. End with CNTL/Z.
    mensa(config)# ip ftp username cisco
    ^
    % invalid command detected at '^' marker.
    Same happens for the password
    when I check the options I have for ip
    mensa(config)# ip ?
    access-list Configure ip access list
    default-gateway Configure ip default gateway
    default-network Configure ip default network
    domain-list Add additional domain names
    domain-lookup Enable/Disable DNS
    domain-name Specify default domain name
    name-server Specify nameserver address
    route Configure static routing
    routing Enable ip routing
    tcp Enable ip tcp path-mtu-discovery
    Is there something else I have to do first ?
    Any help much appreciated
    Thanks

    Hi, this is for the MDS9120
    mensa# show version
    Cisco Storage Area Networking Operating System (SAN-OS) Software
    TAC support: http://www.cisco.com/tac
    Copyright (c) 2002-2005, Cisco Systems, Inc. All rights reserved.
    The copyrights to certain works contained herein are owned by
    other third parties and are used and distributed under license.
    Some parts of this software are covered under the GNU Public
    License. A copy of the license is available at
    http://www.gnu.org/licenses/gpl.html.
    Software
    BIOS: version 1.1.0
    loader: version 1.2(2)
    kickstart: version 2.1(2b)
    system: version 2.1(2b)
    BIOS compile time: 10/24/03
    kickstart image file is: bootflash:/m9100-s1ek9-kickstart-mz.2.1.2b.bin
    kickstart compile time: 8/30/2005 19:00:00 [09/18/2005 19:47:18]
    system image file is: bootflash:/m9100-s1ek9-mz.2.1.2b.bin
    system compile time: 8/30/2005 19:00:00 [09/18/2005 20:07:26]
    Hardware
    cisco MDS 9100 ("1/2 Gbps FC/Supervisor")
    Intel(R) Pentium(R) III CPU - with 964000 kB of memory.
    Processor Board ID JAB093400VV
    bootflash: 500736 blocks (block size 512b)
    slot0: 0 blocks (block size 512b)
    mensa kernel uptime is 48 days 21 hours 52 minute(s) 47 second(s)
    Last reset at 460859 usecs after Wed Dec 14 15:22:16 2005
    Reason: Reset Requested by CLI command reload
    System version: 2.1(2b)
    Service:
    Hope this is enough info.
    Thanks
    Gordon

  • FTP Quote Command

    Is possible executing a "quote" command before invoking FTP out adapter?
    Thanks
    Rogerio

    We need to FTP outbound (IBM Mainframe) and configure data block/window size before putting files. Any ideas?
    Thanks
    Rogerio

  • Ftp location commands not working on programs

    Hi, I dont know how to explain this so I better post a screenshot. Im trying to open a remote file with bluefish to edit it in place and save changes after.
    I have tried to open with several programs with no luck, so its not bluefish specific, I have also tried aptana studio 3 and same thing. Of course those are not the real parameters for the ftp server (just in case ) they are just for ilustrative purposes.
    If I do it via dolphin, it works, konqueror also works, but whenever Im inside a different program it wont let me.
    What can I do to fix this?
    thanks in advance for the help!

    ok I am back with the solution
    For remote files, bluefish uses GVFS, so first thing you should check that you have that installed
    pacman -Ss gvfs
    that will bring you the related packages along with which ones are installed. In my case I had all the relevant ones and didnt install the bluetooth support or anything like that, just read the package descriptions and you should be fine.
    the command that will do magic for you is gvfs-mount use it as so:
    gvfs-mount ftp://yourdomain.com
    then it will ask for user and password just type them in and you are good to go (that command mounts the ftp on /hone/youruser/.gvfs)
    Then you can go into bluefish and see it on the file list and explore it to your hearts content along with edit it in place etc etc.
    you can do it with sftp also:
    gvfs-mount sftp://yourdomain.com
    If your hosting provider port number is different from the default just add it at the end of that line with a ":"
    gvfs-mount sftp://yourdomain.com:2222
    Hope it helps!

  • How about implement queryResult.size() by "select count(*)..."

    Since the size() method often occupies much resource and slow down speed
    greatly, why not implement it by "select count(*) from ..." instead of
    "resultSet.last()"?
    I think when executing a query, a Query will remember the actual SQL
    executed, and modify it to some "select count(*)..." like SQL when the
    related result collection's size() method is called.

    Since the size() method often occupies much resource and slow down speed
    greatly, why not implement it by "select count(*) from ..." instead of
    "resultSet.last()"?Unfortunately, there are lots of issues with this approach. Basically there
    are just many situations in which it can report bad numbers.

  • Limit FTP size in solaris

    Hi,
    is there anyone know how to set the size of the ftp file? I want to set my user to ftp the size 100MB only into his directory. anyone does had any idea to do that?

    Hello Yessen,
    There is a default limit to the attachment, however, you may set your own through table AGS_WORK_CUSTOM
    Just add the following entry:
    NAME = IM_INCI_FILE_UP_MAX_SIZE and VALUE = <Attachment restriction size in Kilobytes>
    Please refer to Note1366526 for details.
    regards,
    Grace

Maybe you are looking for