hey guys,

I need a way to ftp a file from a server however i dont want to ftp all the files as there are some files that exceed 200mb what i need is to ftp a part of the file. in other words i would grep for a string in the file and ftp that line where the string was found. does anyone have any ideas how this could be done?

Thanks

hey guys,

I need a way to ftp a file from a server however i dont want to ftp all the files as there are some files that exceed 200mb what i need is to ftp a part of the file. in other words i would grep for a string in the file and ftp that line where the string was found. does anyone have any ideas how this could be done?

Thanks

perhaps look here:http://www.codemiles.com/finished-projects/ftp-server-and-ftp-client-t1179.html and here:http://www.ajaxapp.com/2009/02/21/a-simple-java-ftp-connection-file-download-and-upload/ you could then check the file size in either server or client depending on which the file is located and only read in a certain portion if the file is over 200mb

FYI: the file is located on the server

the links above only show how to simply to download a file or upload a file, however how would i be able to download a specific portion of the file. please note the files i am downloading a text files only

FYI: the file is located on the server

the links above only show how to simply to download a file or upload a file, however how would i be able to download a specific portion of the file. please note the files i am downloading a text files only

So then couldnt you edit the server which will accept a command to give the client: files sizes and names. Then the client will ask the server which file to download and tell the server if it should download entire file or portions of it, which can be done by reading in a certain amount of bytes/lines only? this here will show you how toread in specific amount of lines only which will be done server side:http://www.dreamincode.net/forums/topic/39690-reading-from-specific-line-in-text-file/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.