Liberty BASIC Community Forum
« Uploading jpgs problem (corrupt file) »

Welcome Guest. Please Login or Register.
Dec 14th, 2017, 6:51pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Uploading jpgs problem (corrupt file)  (Read 779 times)
inmosim
New Member
Image


member is offline

Avatar




PM


Posts: 11
xx Uploading jpgs problem (corrupt file)
« Thread started on: Jun 15th, 2015, 11:53am »

Hello there,

I use Ftp4w32.dll to upload files to my server. Uploading data files as well as txt is superb but, for some reason, when I upload JPGS the dll corrupts the file and when i download it using ftp the file is corrupted, it is readable but the jpgs is not viewable really...

Has anyone of you experienced this?

Any help will be very much appreciated!!
Israel
User IP Logged

Stefan Pendl
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Computers are like babies, you must teach them what you like them to do ...


Homepage PM

Gender: Male
Posts: 5301
xx Re: Uploading jpgs problem (corrupt file)
« Reply #1 on: Jun 15th, 2015, 1:12pm »

Make sure to change the transfer mode to binary for binary data.
User IP Logged

Stefan

Make sure to read and follow the Forum Guidelines

Liberty BASIC Pro 4.04, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
inmosim
New Member
Image


member is offline

Avatar




PM


Posts: 11
xx Re: Uploading jpgs problem (corrupt file)
« Reply #2 on: Jun 15th, 2015, 5:00pm »

on Jun 15th, 2015, 1:12pm, Stefan Pendl wrote:
Make sure to change the transfer mode to binary for binary data.


Hello Stefan!

Thank you for your come back on this one. Amateurs.... smiley

I am trying to do the API call but I canīt make it to work since i am not sure what string I should use for binary.

Can you please hand me over the code?

Gracias!

User IP Logged

inmosim
New Member
Image


member is offline

Avatar




PM


Posts: 11
xx Re: Uploading jpgs problem (corrupt file)
« Reply #3 on: Jun 15th, 2015, 5:31pm »

GOT IT NOW smiley

That was exactly what was happening!!!

That was driving me crazy! cry
User IP Logged

Stefan Pendl
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Computers are like babies, you must teach them what you like them to do ...


Homepage PM

Gender: Male
Posts: 5301
xx Re: Uploading jpgs problem (corrupt file)
« Reply #4 on: Jun 16th, 2015, 1:59pm »

If you post the code you use, we can better help you wink
User IP Logged

Stefan

Make sure to read and follow the Forum Guidelines

Liberty BASIC Pro 4.04, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls