On Monday 21 May 2001 06:03 am, you wrote:
> When a person is at this stage, you don't know enough to figure out how
> to find what you need to know.  Thanks for your quick response to my
> last post.  I am not even sure how to get your email address to send you
> a message off-list.
>
> Here's some more stuff I don't know...
>
> Question 1:  The string in quotes below represents
> 1) a comment,  2) the FN Key,  3) the filepath,  or  4) something else.
>
> data = Binary("this is the contents of the file")
>

That is what will actually be inserted. That is just a simple
example though, normally you would be inserting from a file,
but like Brandon said, use Chunked or better yet Streaming
for any decent amount of data. I think there is a good 
Chunked insert example in contrib.


> Confirm for me, please...
> Arg 1 below is a command line argument representing?
> Arg 2 below represents hops-to-live?
> Arg 3 below is the
>
> client.simple.putFile(sys.argv[2], 20, data)
>

That should actually read sys.argv[1] and you will
also need to add 'import sys' to the script at the top.
This will take the first argument and use it as the Freenet
key.

And yes, the 20 is the htl.




_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

>From - Mon May 21 11:35:48 2001
X-UIDL: 3adbdd6c000005f6
X-Mozilla-Status: 0011
X-Mozilla-Status2: 00000000
Return-Path: <devl-admin at freenetproject.org>

Reply via email to