realbasic-nug
[Top] [All Lists]

Re: AppleDouble and ResourceFork

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: AppleDouble and ResourceFork
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Thu, 31 Aug 2006 12:06:04 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <41F3408D-5B9F-43FE-A881-616B90546BAC at jettfuel dot net>

On Aug 31, 2006, at 12:00 PM, Chris Jett wrote:

I am working on an application that needs to take a Mac file and convert it into an AppleDouble email attachment. As I understand it, AppleDouble takes the resource fork, splits it off and base64 encodes it. How would I go about getting the entire resource fork into a format that I can then base64 encode?

Also - looking at an attachment that I sent myself with Apple Mail, I see x-mac-type, x-unix-mode, and x-mac-creator headers for the datafork portion of the email. Obviously, the x-mac-type and x-mac- creator are somehow encoded type and creator codes, and the unix- mode is simply the file permissions. Does anyone know how Apple is encoding these type and creator codes?

I have some code that turns a forked file into a single string

You could use that as a starting point

Check www.great-white-software.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>