I'm developing a plugin for Adobe Acrobat 6.0 that needs to use FTP to
fetch some data files from a server on the LAN.
Since Acrobat 6.0 plugins are based on Carbon, I have been trying to
get URLSimpleDownload working, but keep getting errors. In my
testing, I have found that file: and http: URLs work fine, but ftp:
URLs don't. They typically return a result code of -30785 (Extension
failed to load).
It should be able to do this kind of thing. If you show some code the
reason for the errors may be more obvious.
And to top it off, I'm not even sure if URLSimpleDownload would do
what I need even if it was working.
Ultimately, what I need to work is this:
- Login to an FTP server on the LAN using a username and password (not
anonymous).
it can do that.
- Get a listing of a specific directory relative to the server's root
directory which is *not* below the logged in user's home
directory. (can an ftp: URL even do this?) The logged in user does
have permission to list this directory.
that depends very much on whether the server is setup to chroot users
to their home directory. URL access can get directory listings.
- Download data files from that directory in ASCII or BIN mode,
selectable by me.
that can certainly be done.
Details about my environment:
Mac OS X 10.3.7
CodeWarrior 9.3
Adobe Acrobat 6.0 SDK
XCode 1.5 is loaded, but I'm not using it directly.
Other things I've tried:
- Apple provides sample code for doing FTP using CoreFoundation, but I
can't use it because Acrobat 6.0 Plugins aren't Mach-O and thus can't
use any of the .framework stuff. (Unless I'm missing something
here...)
You can import symbols manually at runtime and have fun like that. Or
have your plugin load a Mach-O bundle that can use the CFNetwork stuff
without having to mess around with importing symbols
Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden