Sent .jpeg file to server by FTP whit open at


#1

dear all:
now i recevied the data of .jpeg file from uart…and store them in buffer.

#define DST_FILENAME “/data.jpeg”

     static u8 buffer [] ={0xFF ,0xD8, 0xFF , 0xE0 , 0x00 , 0x11 , 0x4A , 0x46 , 0x49 , 0x46 , 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0xFF , 0xDB , 0x00 , 0x43 , 0x00 , 0x10 , 0x0C , 0x0C , 0x0E , 0x0C , 0x0A , 0x10 , 0x0E , 0x0E , 0x0E , 0x12 , 0x12 , 0x10 , 0x14 , 0x18 , 0x28 , 0x1A , 0x18 , 0x16 , 0x16 , 0x18 , 0x32 , 0x24 , 0x26 , 0x1E , 0x28 , 0x3A , 0x34 , 0x3E , 0x3C , 0x3A , 0x34 , 0x38 , 0x38 , 0x40 , 0x48 , 0x5C , 0x4E , 0x40 , 0x44 , 0x58 , 0x46 , 0x38 , 0x38 , 0x50 , 0x6E , 0x52 , 0x58 , 0x60 , 0x62 , 0x68 , 0x68 , 0x68 , 0x3E , 0x4E , 0x72 , 0x7A , 0x70 , 0x64 , 0x78.0xFF,0XD9};

I invoke the wip_FTPCreateOpts

dst_ftp_cx = wip_FTPCreateOpts (
DST_SERVER, evh_cx, NULL,
WIP_COPT_USER, DST_USER,
WIP_COPT_PASSWORD, DST_PASSWORD,
WIP_COPT_PASSIVE, TRUE,
WIP_COPT_TYPE,‘I’,
WIP_COPT_END);

dst_data = wip_putFile( dst_ftp_cx, DST_FILENAME, evh_data, NULL);

int nwrite = wip_write( dst_data, (void *)buffer, sizeof( buffer) - offset);

but i can not get the jpegfile…in server,

why ?

thank you !


#2

Did you controlled the ftp server log?