Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!peruvian.utah.edu!u-sgreen From: u-sgreen%peruvian.utah.edu@cs.utah.edu (Scott Greenman) Newsgroups: comp.sys.next Subject: Writing NXImage data to a stream Keywords: NXImage NXStream Sybase Message-ID: <1991Mar22.110636.15387@hellgate.utah.edu> Date: 22 Mar 91 18:06:36 GMT Organization: University of Utah CS Dept Lines: 19 I am trying to write an image stored in a NXImage object to a stream, save that data in Sybase, write it back out into another stream, and read it back into an NXImage object. I am using the writeTiff: method to write the image to the stream. I have verified that the data goes into and out of Sybase okay, but then when I try to use NXImage's initFromStream: to read it back into a NXImage I get the error: TIFF Error: TIFF directory is missing required "ImageLength" field. How can I get around this? Do I need to use a typed stream and archive the entire NXImage object? I'm not very farmilliar with typed streams so I don't know if they will work. Thanks for any help. Please respond by e-mail and I will post a summary. Scott Greenman Univ of Utah