RE: ctApplicationOctetStream

From: [at]} <support{>
Date: Sat, 22 Nov 2003 10:00:13 +0100

----boundary-LibPST-iamunique-305129304_-_-
Content-type: text/plain

Dear Mar,

CommTCP is a driver for CommStreams. The CommStreams documentation contains
the following preconditions for WriteBytes:

PROCEDURE (s: Stream) WriteBytes (IN x: ARRAY OF BYTE; beg, len: INTEGER;
OUT written: INTEGER)NEW, ABSTRACT

Pre
beg >= 0 20
len > 0 21
LEN(x) >= beg + len 22

Thus, Trap 21 means "len <= 0".

Regards,

Thomas,
Oberon microsystems, Inc.

-----Original Message-----
From: Mar NDIAYE [mailto:mar.ndiaye{([at]})nowhere.xy
Sent: Freitag, 21. November 2003 16:53
To: Blackbox Mailing-List
Subject: ctApplicationOctetStream


Hello every body,
I use the O3WebServices and I try to send to the user a response by
binary data. I wrote down in my program the fellowing instruction:

Response.ContentType := ctApplicationOctetStream;
and the type of Response.data is POINTER to ARRAY of BYTE

When I execute the program, I get a

Trap 21 ( precondition violated)
in the procedure CommTCP.Stream.WriteBytes

Thank you in advance ! Best regards.


Mar NDIAYE
----------------------------------------------------------------------------
--------
Mar NDIAYE
Laboratoire d'Analyse et de
Technologie du Langage
Université de Genève
2, rue de Candolle
CH-1211 Genève 4
Bureau : L 706
Tel : ++41 (0)22 /379 63 32
Natel: ++41 (0) 078/ 8 55 06 20

http://www.latl.unige.ch

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.



----boundary-LibPST-iamunique-305129304_-_-
Content-type: application/rtf
Content-transfer-encoding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G9zdGluZyBwb2xpY3k6XHBhcg0KXHBhcg0KYSkgVG8gcG9zdCB5b3Ugc2hvdWxkIHVzZSB0
aGUgc2FtZSBhZGRyZXNzIGJ5IHdoaWNoIHlvdSBhcmUgc3Vic2NyaWJlZCB0byB0aGUgbWFpbGlu
ZyBsaXN0LiBUaGF0IHdheSwgdGhlIGxpc3Qgc2VydmVyIHdpbGwgcmVjb2duaXplIHlvdSBhcyBz
dWJzY3JpYmVyIGFuZCBmb3J3YXJkIHlvdXIgcG9zdGluZyBpbW1lZGlhdGVseSwgd2l0aG91dCBj
cmVhdGluZyBhbnkgb3ZlcmhlYWQuXHBhcg0KXHBhcg0KYikgSWYsIGZvciBzb21lIHJlYXNvbiwg
eW91IGNhbm5vdCBwb3N0IGZyb20gdGhlIGFkZHJlc3MsIGJ5IHdoaWNoIHlvdSBhcmUgc3Vic2Ny
aWJlZCwgeW91ciBtZXNzYWdlIHdpbGwgYmUgbW9kZXJhdGVkIHRvIGF2b2lkIHNwYW0uIFBsZWFz
ZSB1bmRlcnN0YW5kIHRoYXQgbW9kZXJhdGlvbiB3aWxsIG9mdGVuIGNhdXNlIHNvbWUgZGVsYXks
IGluIHBhcnRpY3VsYXIgb3ZlciB3ZWVrZW5kcyBvciBob2x5ZGF5c319AC4Q4F0eJAZgAjAo


----boundary-LibPST-iamunique-305129304_-_---
Received on Sat Nov 22 2003 - 10:00:13 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:29:02 UTC