How to open Application/OCTET-STREAM attachments? - Pine

This is a discussion on How to open Application/OCTET-STREAM attachments? - Pine ; Hi all. What is octet-stream ?. particularly the ones that say 'application/octet-stream' I frequently recieve mails that include attachments MIME-encoded with 'Application/OCTET-STREAM'. Pine complains 'Don't know how to display' if I try to open them, yet most of the time ...

+ Reply to Thread
Results 1 to 5 of 5

How to open Application/OCTET-STREAM attachments?

  1. Default How to open Application/OCTET-STREAM attachments?

    Hi all.


    What is octet-stream ?. particularly the ones that say 'application/octet-stream'

    I frequently recieve mails that include attachments MIME-encoded with
    'Application/OCTET-STREAM'. Pine complains 'Don't know how to display' if
    I try to open them, yet most of the time the files are clearly
    identifiable by their file extension (PDF and DOC, most of the time).

    Is their any way to let pine launch the right viewer application if the
    MIME-type meaningless (other than 'save and open by command line')?

    Thanks for your help.


    Bye,
    MRA

  2. Default Re: How to open Application/OCTET-STREAM attachments?

    On Tue, 9 Jan 2007, Marcel R. Ackermann wrote:

    > I frequently recieve mails that include attachments MIME-encoded with
    > 'Application/OCTET-STREAM'.


    What about other people who receive such mail? The problem has
    to be fixed with the *sender*, not with the recipient.

    > Pine complains 'Don't know how to display'


    Rightly so.

    > yet most of the time the files are clearly identifiable by
    > their file extension (PDF and DOC, most of the time).


    Inform the clueless sender about the proper MIME types
    application/pdf and application/msword.

  3. Default Re: How to open Application/OCTET-STREAM attachments?

    *** Marcel R. Ackermann wrote in...:

    I frequently recieve mails that include attachments MIME-encoded with
    'Application/OCTET-STREAM'. Pine complains 'Don't know how to display'
    if I try to open them, yet most of the time the files are clearly
    identifiable by their file extension (PDF and DOC, most of the time).

    Pine can open a file by extension, but you will need to teach Pine how to
    do that. This is done by using ~/.mailcap and ~/.mime-types files. For
    example your ~/.mime-types file should contain

    application/pdf pdf

    and your ~/.mailcap file could contain a command like

    application/pdf;acroread -geometry 700x800 -tempFile %s ; test=test -n "$DISPLAY"

    If the application (acroread) exists, it is executable, the display
    test pass, and the option

    [ ] quell-attachment-extension-warn

    is disabled (as is the case above), then Pine will offer you to open such
    attachment using the extension (.pdf), and execute the above command to
    open such attachment.

    Since you can not change the world around you to make your boss send you
    application/pdf instead of unknown type, this should be a good work around
    for you.

  4. Default Re: How to open Application/OCTET-STREAM attachments?

    On Tue, 9 Jan 2007, Andreas Prilop wrote:

    > Inform the clueless sender about the proper MIME types
    > application/pdf and application/msword.

    This is the solution when only the sender has an interest that his message
    be read. The OP asked also for the case where mainly the recipient has an
    interest in the message. Then writing back "I will not read your message
    until you have fixed your problem" could turn out to be
    counter-productive.

    octet-stream with application/octet-stream is typically a binary file.
    --
    Helmut Richter

  5. Default Re: How to open Application/OCTET-STREAM attachments?

    Here is what I found on the web at another site.. May be this will help understand what the issue is..

    A MIME attachment with the content type "application/octet-stream" is a binary file. Typically, it will be an application or a document that must be opened in an application, such as a spreadsheet or word processor. If the attachment has a filename extension associated with it, you may be able to tell what kind of file it is. A .exe extension, for example, indicates it is a Windows or DOS program (executable), while a file ending in .doc is probably meant to be opened in Microsoft Word. In addition to the generic application/octet-stream content type, you may also encounter attachments that have different subtypes (e.g., application/postscript, application/x-macbinary, and application-msword). They are similar to application/octet-stream, but apply to specific kinds of files.

    No matter what kind of file it is, an application/octet-stream attachment is rarely viewable in an email, Usenet, or web client. If you are using a text-based client, such as Pine, trn, or Lynx, save the attachment to your account, and then transfer it to your personal computer using SFTP. IU Webmail allows you to save attachments directly to your personal computer; see In IU Webmail, how do I use attachments? If you are using a workstation-based client, such as Thunderbird or Outlook, the application should be able to extract and download the attachment automatically. After downloading an attachment through any of these methods, you must then open the attachment in the appropriate application to view its contents.

+ Reply to Thread

Similar Threads

  1. Octet Stream Base 64 etc
    By Application Development in forum Pegasus
    Replies: 0
    Last Post: 03-25-2007, 12:42 PM
  2. Structure to Octet Stream
    By Application Development in forum Object
    Replies: 1
    Last Post: 04-13-2006, 05:37 PM
  3. Data Structure to Octet Stream
    By Application Development in forum Java
    Replies: 0
    Last Post: 04-11-2006, 01:46 AM
  4. Error on save attachments by ADODB.Stream
    By Application Development in forum Microsoft Exchange
    Replies: 1
    Last Post: 05-16-2005, 08:28 PM
  5. ASP Error involving application/octet-stream
    By Application Development in forum Inetserver
    Replies: 0
    Last Post: 05-06-2004, 02:44 PM