How do you verify the size of a large ( 32K) plain text body

Hello All,
I am running GW 8.0.2 Hot Patch 3, using SOAP schema 1.04.
When I attempt to process a message, that contains only a plain text body with a size (in bytes) of 64,382 - the following sizes are reported by objects extracted from GroupWise, via SOAP calls:
Message Size: 71,425 (should be bigger than the plain text body).
Message Part [0] length: 70,854 - no idea where this value comes from
In the getAttachmentResponse object, the part has:
length: 87,772 - Which matches the Base64 encoded length, plus padding, of the plain text.
The actual size of the plain text (on disk): 64,382
I am hoping to use the HTTP GET method for extracting the large plain text object, which means that I will not have access to the getAttachmentResponse object.
So my question is, based on the MessageBody, MessagePart[0] length of 70,854 - is there a formula, or other way to determine the correct expected byte size of the plain text object to enable me to verify that the HTTP GET operation or the SOAP getAttachmentRequest completed correctly?
Regards,
Dave Stiller.

Hey Preston,
Thanks for the prompt response. Not the answer that I was seeking, but none the less an answer. Thanks.
Can I suggest an enhancement for a future release, to add an additional structure to the message object that allows you to detail the available formats and byte sizes of the formats that relate to the message body object. This could even be an extension/completion of the MessagePart object array on the Message Body. (One array component for each available format.) There are no issues when dealing with large body texts as attachments, but an accurate byte count is important to me.
This will enable us to verify that the message body content, downloaded from GroupWise, has not be corrupted during transfer - particularly important when using HTTP requests.
Have a great day,
Dave...
Originally Posted by Preston Stephenson
You will have to be careful in getting message bodies.
The plain text message body can come from different
sources and / or formats.
The message body can be stored in RTF format.
You can extract the plain text from the RTF text.
If there is a text.htm message body attachment, the
GW Client will extract the text plain text from the
text.htm attachment and will ignore the text plain
message body attachment.
There can be corruptions in the message body
attachment. The attachment can report a certain
size, but the actual data may be different.
You have to assume what is stored / returned is
correct. If you are bound and determined to read
the number of bytes recorded, you can cause
problems. There was one case where the attachment
was corrupt. The POA returned all the data that
was available. The application tried to read past
the end of the valid data and caused the POA to
crash.
You get all of the data in one HTTP GET call. In
that case, the "Content-Length" header will have
the number of bytes in the message body attachment.
Preston
>>> On Sunday, August 12, 2012 at 11:36 PM,
stillerd<[email protected]> wrote:
> Hello All,
>
> I am running GW 8.0.2 Hot Patch 3, using SOAP schema 1.04.
>
> When I attempt to process a message, that contains only a plain text
> body with a size (in bytes) of 64,382 ‑ the following sizes are
reported
> by objects extracted from GroupWise, via SOAP calls:
>
> Message Size: 71,425 (should be bigger than the plain text body).
> Message Part [0] length: 70,854 ‑ no idea where this value comes from
>
> In the getAttachmentResponse object, the part has:
> length: 87,772 ‑ Which matches the Base64 encoded length, plus padding,
> of the plain text.
>
> The actual size of the plain text (on disk): 64,382
>
> I am hoping to use the HTTP GET method for extracting the large plain
> text object, which means that I will not have access to the
> getAttachmentResponse object.
>
> So my question is, based on the MessageBody, MessagePart[0] length of
> 70,854 ‑ is there a formula, or other way to determine the correct
> expected byte size of the plain text object to enable me to verify that
> the HTTP GET operation or the SOAP getAttachmentRequest completed
> correctly?
>
> Regards,
> Dave Stiller.

Similar Messages

  • HT4489 this is ridiculous! how do you keep the size of the picture for a contact that small? it is usually a piece of  a lager picture... any way to make the size of the pictures the 224 KB they want? I always thought the application cropped the picture t

    this is ridiculous! how do you keep the size of the picture for a contact in the address book that small? it is usually a piece of  a lager picture... any way to make the size of the pictures the 224 KB they want? I always thought the application cropped the picture to fit their requirements...
    Help
    Leo

    Gem
    Events are organised strictly on date and time, as read by iPhoto from the Exif data in the Photo. You cannot manually sort.
    Create Albums. You can do much more organising with Albums, use Photos from different events, place them as you will. Best of all, Albums use no disk space at all. They simply reference the file on the Hard Disk. So a pic can be 1, 10 or 100 Albums with no wasted disk space whatever.
    Regards
    TD

  • How do you change the size of pictures?

    Hello,
    I'm a new Mac user. How do you change the size of pictures in iPhoto? Sometimes when sending e-mails, the picture files are extremely large and take a long time to load... Is there any way you can make the picture or file smaller? Like on a PC, you can open the photo in the Paint program and just reduce the size... Is there anything like this for the Mac?
    Thanks!

    Assuming that you're accessing your email package from INSIDE iPhoto, you're given a choice of picture sizes. Personally, I've found "medium" to be a good compromise but you might prefer "small" (iPhoto will tell you the file size).
    If you don't know what I'm talking about, first go iPhoto Preferences > General and select your email client. Then, go to the View menu and select Show in Toolbar > Email.

  • How do you see the size of your hard drive

    I am new the the MAC world and I am trying to figure out some things.  How do you see the size remaining on your hardrive?

    If you have a folder open or dubble click on your hard drive you, can turn on the status bar which will show you available disc space:

  • How do you see the size of your library now in iTunes 11?

    On iTunes 10 when you were looking at your song list, at the bottom everyone has seen the small informative text that tells you how many days it would take to listen to the songs that you currently have on the screen. Where is that information now??
    How do you see the size of your library, or is there an option in iTunes 11 that will allow you to enable a way to see that text again at the bottom of your screen?

    In the menu bar, open "view", and click "show status bar"
    (Or the shortcut to toggle it is CTRL + / )

  • How do you verify the completeness of a restoration drill?

    One responsibility of the DBA is to ensure the database backups are usable. Running the restore / recover commands in rman is easy. However, how would you verify the correctness of the restoration? Or do you believe that when rman says it's Ok and oracle merrily open the database, then it's OK? And how about point-in-time recovery (which seems even more difficult to verify)?
    (Even though this is a generic question, here is the a database version if needed as basis of discussion:
    Oracle: 10.2.0.4
    OS: RHEL 4
    Edited by: thtsang on Oct 15, 2010 11:06 AM

    I would prefer the verification to be done in database perspective. If there is no data loss / inconsistence in the database, it should also be OK for the application.
    And if queries on key tables were used, has any one experienced any issue? If so, what's the cause and what's the resolution? And for restoration for hot backup or point in time recovery, it is difficult to confirm what's correct result, because the data was not fixed during the restoration.

  • How do you change the size of the font in the menu bar running Maverick?

    On Maverick, how do you change the size of the menu bar font?

    Sent my feedback already:
    Thank you for your feedback on the MacBook Pro.
    We cannot respond to you personally, but please know that your message has been received and will be reviewed by the MacBook Pro Team. If we need to follow up with you on your ideas for improving the MacBook Pro, we will contact you directly.
    We appreciate your assistance in making the MacBook Pro a great computer.
    MacBook Pro Team
    Apple

  • How do you change the size of the font in iMessage?

    How do you change the size of the font in iMessage?

    I'VE DONE IT!
    I found 2 little boxes floating outside of each of the englarge pasteboards.
    i foudn them using select all, and then deleting the boxes.
    FINALLY! Thanks for all your help though Hopefully this will help someone else!

  • How do you reduce the size of the print diolog box when printing a pdf file?

    How do you reduce the size of the print diolog box when trying to print a PDF file? The print button is below the task bar.

    What is your monitor's screen resolution?  See http://www.adobe.com/products/reader/tech-specs.html

  • How do you view the size of your Ibook library? How do you view how many books are in your library?

    How do you view the size of your Ibook library? How do you view how many books are in your library?

    Open the iBooks app. All your iBooks should load there.
    You can see the file size for each iBook by clicking List from the menu bar top of the iBooks window.
    message edited by:  cs

  • Apple Mail (Mavericks), Viewing size of list is too small.how do you increase the size of the email message list.  The font is too small, I can hardly read them.

    In Apple Mail, using Mavericks, how do you increase the size of the email message list that displays on the left side of the screen?
    The font size is so small.
    Thanks.

    Thank you for responding.  After investigating and checking further, it was clear that only one of your suggestions changes the font size of the list of emails, also called the In-box.  And that is the display resolution.
    However, changing the display resolution affects the dots per inch of everything, everywhere and makes it larger.
    Given the high end fee Apple charges for their products, and the generally well developed software they provide, it is hard to imagine they have not corrected this obvious slight of effort on the inbox text. At times Apple's "one-size-fits-all" and "it's our way or no way" mentality astounds me and makes me want to run back to Microsoft.
    Evidently this is a well known mistake, which has yet to receive any attention.
    Again, thank you for your effort and assistance on my behalf.

  • How do you reduce the size of the email storage on an iPhone?  I have deleted all mail items and my mailbox still takes up 1.2 GB of space.

    how do you reduce the size of the email storage on an iPhone?  I have deleted all mail items and my mailbox still takes up 1.2 GB of space.

    What is the Other on my iPhone and How to Remove It
    Also
    "First you go settings/general/usage/music/then left swipe over music and press delete and you would think it deletes your music but it doesn't instead it deletes your other but make sure your ipod is connected to a computer while doing this"
    as recommended by:
    How do I get rid of "other" storage: Apple Support Communities
    Next, usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
    To restore from backup see:
    iOS: How to back up
    To restore to factory settings/new iPod see:
    iTunes: Restoring iOS software

  • How can you shrink the size of an upright picture to make it smaller without losing any of the detail in it??? At the moment, if I view them on my laptop, landscape photos fill the screen, but portrait photos only show the middle part.

    How can you shrink the size of an upright picture to make it smaller without losing any of the detail in it (in Slideshow)??? At the moment, if I view them on my Mac Laptop, landscape photos fill the screen, but portrait photos only show the middle part, so I loose the top and bottom of the picture.  Have tried cropping, but that means I lose top and bottom part of the picture, so that is not the answer!!

    Homestly haven't a clue what's going on there. 
    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • HT4993 How do you turn the weird sound off when sending a text using the iPhone 4S

    How do you turn the weird sound off when sending a text using the iPhone 4S?

    Go to Settings-Sounds-Text Tone and change to None.  You're referring to the sound when posting a message to someone else, correct?  The only issue is if you set to none, you will not hear the incoming either.

  • How do you add the contact who sent out a group text?

    How do you add the contact who sent out a group text? Also, how do you reply to the sender without having to reply to everyone in the group text?
    Thanks

    bmm243 wrote:
    Is this feature equip for apple phones?
    No.

Maybe you are looking for