[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Looking for best option
Okay so my real problem was specifying O_TEXT_CREAT flag.
I was coding:
fd = open( '/tmp/filename.tif'
: O_WRONLY + O_CREAT + O_CCSID
+ O_TEXTDATA + O_TEXT_CREAT
: S_IRUSR + S_IWUSR + S_IRGRP + S_IROTH
: 819
: 0 );
You coded:
fd = open( '/tmp/filename.tif'
: O_WRONLY + O_CREAT + O_EXCL
: S_IRUSR + S_IWUSR + S_IRGRP + S_IROTH );
If I remove the O_TEXT_CREAT on my open I'm still able to view the image.
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Thursday, January 08, 2009 12:09 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Looking for best option
Bruce... TIFF files are not text. The CCSID on the file is irrelevant
and unused.
Bruce Reynolds wrote:
> YEA! Thanks so much Scott!
>
> Turns out my problem was I specified a CCSID of 819 for my tiff file
rather
> than 37. Makes sense to me now.
>
> Now I can code everything up using the code you sent me and we can move to
> the new box next week.
>
> Thanks again,
> Bruce
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------