Attachments.

Visto 267 veces
Saltar al primer mensaje no leído

Ez

no leída,
29 jun 2012, 11:20:2529/6/12
a rav...@googlegroups.com
  • What is the best way to handle attachments in RavenDB?
  • A webpage has an upload pdf button in addition to other fields. All those fields go into one document in ravendb on save. If I want to attach a pdf document for each document, how can I do it?
  • Does it store just the path to the pdf file? or pdf file itself?
Are there any examples I can see that have accomplished this .. 

Thanks for the information.


Oren Eini (Ayende Rahien)

no leída,
29 jun 2012, 11:24:1829/6/12
a rav...@googlegroups.com
Assuming you want to store the pdf file inside ravendb, you:

Put the attachment inside RavenDB.
You create a document that reference this attachment.

Ez

no leída,
29 jun 2012, 11:45:4429/6/12
a rav...@googlegroups.com
How can I put the attachment inside RavenDB...

is there like a separate attachment tab/section in the studio I can access this from?

Oren Eini (Ayende Rahien)

no leída,
29 jun 2012, 11:49:0129/6/12
a rav...@googlegroups.com
store.DatabaseCommands.PutAttachment()

There is no UI for attachments.

Ez

no leída,
29 jun 2012, 12:24:1029/6/12
a rav...@googlegroups.com
Thank you.. and can you please give me an example how i can reference such a document inside a document...

Ez

no leída,
29 jun 2012, 12:25:0429/6/12
a rav...@googlegroups.com
I mean "how I can reference the attachment from inside a document"

thank you

Oren Eini (Ayende Rahien)

no leída,
29 jun 2012, 12:54:1829/6/12
a rav...@googlegroups.com
Use a property of type string that holds the attachment key
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos