×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.





Using FTP is not an option for this particular application.

Looking at the data a little closer in a tool that compares two files...if I look at the data from a copy of the image file that I FTP to the PC and
compare it to the one sent over the socket, I can see where there is a bunch of blank spaces inserted into my file, and it looks like possibly a
carriage return or line feed is being inserted there too.

It has to be a buffer length issue or something like that.

Here's the relevant bit of code:

The variable bufOut is 32,767 bytes long (character field)

D ifsReadLine PR * ExtProc('_C_IFS_fgets')
D inBuffer * Value Options(*String)
D inBufLen 10i 0 Value
D inFilePtr * Value Options(*String)
*------------------------------------------------------------
C Dow ifsReadLine(%Addr(BufOut):
C %Size(BufOut):zp) <> *NULL
C callp(e) SendtheData(socketDescriptor: %Trim(BufOut))
C Eval BufOut = *Blanks
C Enddo


This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.