Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

All great discoveries are made by mistake. -- Young


devel / comp.protocols.dicom / How to properly encapsulate binary STLs? (C#)

SubjectAuthor
o How to properly encapsulate binary STLs? (C#)Parham Gholami

1
How to properly encapsulate binary STLs? (C#)

<77b2c2df-fadc-45ac-bb25-da6b79f13f41n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=415&group=comp.protocols.dicom#415

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:a05:620a:2552:b0:67b:32e2:2400 with SMTP id s18-20020a05620a255200b0067b32e22400mr11285808qko.768.1650930358713;
Mon, 25 Apr 2022 16:45:58 -0700 (PDT)
X-Received: by 2002:a05:622a:204:b0:2f3:6be8:a4b2 with SMTP id
b4-20020a05622a020400b002f36be8a4b2mr3664134qtx.237.1650930358583; Mon, 25
Apr 2022 16:45:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Mon, 25 Apr 2022 16:45:58 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=70.164.96.254; posting-account=b6okfgoAAADvGQQXB-YL9H7zIWZBH7Sa
NNTP-Posting-Host: 70.164.96.254
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <77b2c2df-fadc-45ac-bb25-da6b79f13f41n@googlegroups.com>
Subject: How to properly encapsulate binary STLs? (C#)
From: pgholami@rchsd.org (Parham Gholami)
Injection-Date: Mon, 25 Apr 2022 23:45:58 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 11
 by: Parham Gholami - Mon, 25 Apr 2022 23:45 UTC

I'm having some trouble figuring out how to properly encapsulate binary STLs. Every time I've tried to open a DICOM encapsulated binary STL that I've created, I get errors suggesting there is something wrong with the encapsulated data.

In C#, I've generally opened files and written them to byte arrays to then store as the encapsulated document. [0] This has worked well for ASCII OBJ and STL files, but does not work as intended for binary STLs. Am I missing a critical step in the encapsulation process?

[0] https://docs.microsoft.com/en-us/dotnet/api/system.io.file.readallbytes?view=net-6.0

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor