Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Sponsor

controlSUITE™ software
Comprehensive.
Intuitive.
Optimized.

Real-world software for real-time control. Details Here!

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | Rabbit-Semi | ftp jpg upload to server


Advertise Here

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

ftp jpg upload to server - gi_d...@hotmail.com - Oct 19 2:29:27 2009

Hi Folks

Am trying to upload a jpg file to a server running cpanel. I have no problem with a text file but the jpg is corrupted. There seems to be no way to select the ftp transfer in Dynamic C from ASCII to binary. Does anyone know the default transfer mode and any way to upload a jpg successfully.
Thanks
Ian
------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )


Re: ftp jpg upload to server - Tom Collins - Oct 19 20:26:37 2009

On Oct 18, 2009, at 11:29 PM, g...@hotmail.com wrote:
> Hi Folks
>
> Am trying to upload a jpg file to a server running cpanel. I have
> no problem with a text file but the jpg is corrupted. There seems
> to be no way to select the ftp transfer in Dynamic C from ASCII to
> binary. Does anyone know the default transfer mode and any way to
> upload a jpg successfully.
> Thanks
> Ian

Looking through the FTP_CLIENT.lib library of both Dynamic C 9.62 and
10.56, it looks like it always uses binary mode (sends "TYPE I" to
the remote server).

Are you sure you're sending a valid JPEG?

If you're using an Ethernet-based Rabbit, can you run Wireshark to do
a packet capture of the connection and see what the Rabbit is
actually sending?

-Tom

______________________________
controlSUITE™ software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )