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.
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 )
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 )