O
Orbian
I am trying to use a web service to submit a fax to a fax server via
the FAXCOMLib. When I do a FAXCOMLib.FaxDoc.Send() on a fax that was
faxed to me it works fine. However, If I create a TIFF file via the
DotNet framework the TIFF file fails with "Invalid Data" exception. The
DotNet generated TIFFs will work fine with a stand-alone desktop
application but fail in a web service. I know the web service is
capable of submitting faxes, just not DotNet generated ones. The only
thing I can think of is that the faxes that work are 1bpp indexed and
the DotNet generated ones are gray scale I believe. Although this
doesn't explain why the DotNet ones will work with the exact same code
in a Windows Form application. Here are the dumps from the two files
that I test with:
The one that works with web services:
c:\outfaxes\test.tif:
Magic: 0x4949 <little-endian> Version: 0x2a
Directory 0: offset 22568 (0x5828) next 0 (0)
SubFileType (254) LONG (4) 1<2>
ImageWidth (256) LONG (4) 1<1728>
ImageLength (257) LONG (4) 1<1084>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<1>
StripOffsets (273) LONG (4) 1<8>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) LONG (4) 1<1084>
StripByteCounts (279) LONG (4) 1<22305>
XResolution (282) RATIONAL (5) 1<204>
YResolution (283) RATIONAL (5) 1<98>
ResolutionUnit (296) SHORT (3) 1<2>
PageNumber (297) SHORT (3) 2<0 0>
40001 (0x9c41) ASCII (2) 8<PSEFAX1\0>
40002 (0x9c42) ASCII (2) 1<\0>
40003 (0x9c43) ASCII (2) 28<Brooktrout Line #1 (TRUF ...>
40005 (0x9c45) ASCII (2) 1<\0>
40046 (0x9c6e) LONG (4) 1<1>
40047 (0x9c6f) LONG (4) 1<4>
40048 (0x9c70) LONG (4) 1<256>
40049 (0x9c71) LONG (4) 1<18>
40051 (0x9c73) SRATIONAL (10) 1<24.2823>
40052 (0x9c74) SRATIONAL (10) 1<36.3325>
40053 (0x9c75) LONG (4) 1<2>
The one that fails with "Invalid Data":
c:\outfaxes\x_124_145.tif:
Magic: 0x4949 <little-endian> Version: 0x2a
Directory 0: offset 138098 (0x21b72) next 0 (0)
SubFileType (254) LONG (4) 1<0>
ImageWidth (256) SHORT (3) 1<850>
ImageLength (257) SHORT (3) 1<1119>
BitsPerSample (258) SHORT (3) 4<8 8 8 8>
Compression (259) SHORT (3) 1<5>
Photometric (262) SHORT (3) 1<2>
StripOffsets (273) LONG (4) 373<8 172 336 500 664 828 992 1156 1320
1484 1648 1812 1976 2140 2304 2468 2632 2796 2960 3124 3288 3452 3616
3780 ...>
SamplesPerPixel (277) SHORT (3) 1<4>
RowsPerStrip (278) LONG (4) 1<3>
StripByteCounts (279) LONG (4) 373<164 164 164 164 164 164 164 164 164
164 164 164 164 164 164 164 164 164 164 164 164 164 164 164 ...>
XResolution (282) RATIONAL (5) 1<100>
YResolution (283) RATIONAL (5) 1<100>
PlanarConfig (284) SHORT (3) 1<1>
ResolutionUnit (296) SHORT (3) 1<2>
Software (305) ASCII (2) 27<Adobe Photoshop CS Windo ...>
DateTime (306) ASCII (2) 20<2005:08:05 15:37:23\0>
Predictor (317) SHORT (3) 1<1>
ExtraSamples (338) SHORT (3) 1<2>
700 (0x2bc) BYTE (1) 6398<0x3c 0x3f 0x78 0x70 0x61 0x63 0x6b 0x65 0x74
0x20 0x62 0x65 0x67 0x69 0x6e 0x3d 0x27 0xef 0xbb 0xbf 0x27 0x20 0x69
0x64 ...>
9999 (0x270f) SHORT (3) 153<21564 18241 15955 21564 18241 15422 20568
29551 13374 12592 12092 20568 29551 15422 20569 29551 14654 15416 22831
28496 15987 17980 28001 27753 ...>
33723 (0x83bb) LONG (4) 2<540 131074>
34377 (0x8649) BYTE (1) 4096<0x38 0x42 0x49 0x4d 0x4 0x4 00 00 00 00 00
0x7 0x1c 0x2 00 00 0x2 00 0x2 00 0x38 0x42 0x49 0x4d ...>
34665 (0x8769) LONG (4) 1<2867432>
ICC Profile (34675) UNDEFINED (7) 3144<00 00 0xc 0x48 0x4c 0x69 0x6e
0x6f 0x2 0x10 00 00 0x6d 0x6e 0x74 0x72 0x52 0x47 0x42 0x20 0x58 0x59
0x5a 0x20 ...>
Anybody see anything that might be causing the problem?
Thanks,
Bob Herzberg
the FAXCOMLib. When I do a FAXCOMLib.FaxDoc.Send() on a fax that was
faxed to me it works fine. However, If I create a TIFF file via the
DotNet framework the TIFF file fails with "Invalid Data" exception. The
DotNet generated TIFFs will work fine with a stand-alone desktop
application but fail in a web service. I know the web service is
capable of submitting faxes, just not DotNet generated ones. The only
thing I can think of is that the faxes that work are 1bpp indexed and
the DotNet generated ones are gray scale I believe. Although this
doesn't explain why the DotNet ones will work with the exact same code
in a Windows Form application. Here are the dumps from the two files
that I test with:
The one that works with web services:
c:\outfaxes\test.tif:
Magic: 0x4949 <little-endian> Version: 0x2a
Directory 0: offset 22568 (0x5828) next 0 (0)
SubFileType (254) LONG (4) 1<2>
ImageWidth (256) LONG (4) 1<1728>
ImageLength (257) LONG (4) 1<1084>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<1>
StripOffsets (273) LONG (4) 1<8>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) LONG (4) 1<1084>
StripByteCounts (279) LONG (4) 1<22305>
XResolution (282) RATIONAL (5) 1<204>
YResolution (283) RATIONAL (5) 1<98>
ResolutionUnit (296) SHORT (3) 1<2>
PageNumber (297) SHORT (3) 2<0 0>
40001 (0x9c41) ASCII (2) 8<PSEFAX1\0>
40002 (0x9c42) ASCII (2) 1<\0>
40003 (0x9c43) ASCII (2) 28<Brooktrout Line #1 (TRUF ...>
40005 (0x9c45) ASCII (2) 1<\0>
40046 (0x9c6e) LONG (4) 1<1>
40047 (0x9c6f) LONG (4) 1<4>
40048 (0x9c70) LONG (4) 1<256>
40049 (0x9c71) LONG (4) 1<18>
40051 (0x9c73) SRATIONAL (10) 1<24.2823>
40052 (0x9c74) SRATIONAL (10) 1<36.3325>
40053 (0x9c75) LONG (4) 1<2>
The one that fails with "Invalid Data":
c:\outfaxes\x_124_145.tif:
Magic: 0x4949 <little-endian> Version: 0x2a
Directory 0: offset 138098 (0x21b72) next 0 (0)
SubFileType (254) LONG (4) 1<0>
ImageWidth (256) SHORT (3) 1<850>
ImageLength (257) SHORT (3) 1<1119>
BitsPerSample (258) SHORT (3) 4<8 8 8 8>
Compression (259) SHORT (3) 1<5>
Photometric (262) SHORT (3) 1<2>
StripOffsets (273) LONG (4) 373<8 172 336 500 664 828 992 1156 1320
1484 1648 1812 1976 2140 2304 2468 2632 2796 2960 3124 3288 3452 3616
3780 ...>
SamplesPerPixel (277) SHORT (3) 1<4>
RowsPerStrip (278) LONG (4) 1<3>
StripByteCounts (279) LONG (4) 373<164 164 164 164 164 164 164 164 164
164 164 164 164 164 164 164 164 164 164 164 164 164 164 164 ...>
XResolution (282) RATIONAL (5) 1<100>
YResolution (283) RATIONAL (5) 1<100>
PlanarConfig (284) SHORT (3) 1<1>
ResolutionUnit (296) SHORT (3) 1<2>
Software (305) ASCII (2) 27<Adobe Photoshop CS Windo ...>
DateTime (306) ASCII (2) 20<2005:08:05 15:37:23\0>
Predictor (317) SHORT (3) 1<1>
ExtraSamples (338) SHORT (3) 1<2>
700 (0x2bc) BYTE (1) 6398<0x3c 0x3f 0x78 0x70 0x61 0x63 0x6b 0x65 0x74
0x20 0x62 0x65 0x67 0x69 0x6e 0x3d 0x27 0xef 0xbb 0xbf 0x27 0x20 0x69
0x64 ...>
9999 (0x270f) SHORT (3) 153<21564 18241 15955 21564 18241 15422 20568
29551 13374 12592 12092 20568 29551 15422 20569 29551 14654 15416 22831
28496 15987 17980 28001 27753 ...>
33723 (0x83bb) LONG (4) 2<540 131074>
34377 (0x8649) BYTE (1) 4096<0x38 0x42 0x49 0x4d 0x4 0x4 00 00 00 00 00
0x7 0x1c 0x2 00 00 0x2 00 0x2 00 0x38 0x42 0x49 0x4d ...>
34665 (0x8769) LONG (4) 1<2867432>
ICC Profile (34675) UNDEFINED (7) 3144<00 00 0xc 0x48 0x4c 0x69 0x6e
0x6f 0x2 0x10 00 00 0x6d 0x6e 0x74 0x72 0x52 0x47 0x42 0x20 0x58 0x59
0x5a 0x20 ...>
Anybody see anything that might be causing the problem?
Thanks,
Bob Herzberg