LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-05-2005, 05:40 AM   #1
mehro
LQ Newbie
 
Registered: Sep 2005
Location: Pakistan
Posts: 19

Rep: Reputation: 0
FtpWrite


i am using ftplib for transferring data from client to pc ,i have to send images from webcam to my server i use following code:
FtpInit();
netbuf *buff,*data;
if(FtpConnect("192.168.1.31",&buff))
printf("\nConnection Established");
else
printf("\nConnection Not Established");

if(FtpLogin("monitor","picture",buff))
printf("\nUser Connected");
else
printf("\nUser not Connected");


FtpAccess(vd->v_filename,FTPLIB_FILE_WRITE,FTPLIB_ASCII,buff,&data);
if(FtpWrite((unsigned char*)buf,size,data))
printf("\nFile Send\n");
else
printf("\nFile not send\n");

FtpClose(data);
FtpQuit(buff);


fclose(fp);
return 0;
}
i also include lib i.e. ftblib.h
it is transerring data with right file size but when i open image there is no display.
-- INSERT -- 131,1 31%
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration