Microsoft Content Management Server - Is it possible to save binary data in a MCMS placeholder?

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > April 2007 > Is it possible to save binary data in a MCMS placeholder?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Is it possible to save binary data in a MCMS placeholder?
egholm@gmail.com

2007-04-21, 7:16 pm

Hey

In my OnSavePosting method, I create an image via GDI and I want that
new image to be saved in a MCMS placeholder as binary data. I have
tried to use the ImagePlaceholder, but it only has a property called
Src to save content, and the problem is that the picture dosen't exist
physical on a disc. Is it possible to save the image as binary data
somehow in the MCMS or do I have to save it as a BLOB type in an
external database?

Stefan Goßner [MSFT]

2007-04-23, 1:19 pm

Hi,

you need to upload the binary data using CmsContext.AcceptBinaryFile.
Then add a link to this uploaded file in the image placeholder.

Cheers,
Stefan


<egholm@gmail.com> wrote in message
news:1177183327.394657.141250@n76g2000hsh.googlegroups.com...
> Hey
>
> In my OnSavePosting method, I create an image via GDI and I want that
> new image to be saved in a MCMS placeholder as binary data. I have
> tried to use the ImagePlaceholder, but it only has a property called
> Src to save content, and the problem is that the picture dosen't exist
> physical on a disc. Is it possible to save the image as binary data
> somehow in the MCMS or do I have to save it as a BLOB type in an
> external database?
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com