Separate Delivery DRM (Need help Urgently) | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through June 09, 2011 ⬆ |
◄ ► |
Author | Message | |||
Venky New member Username: Venky Post Number: 1 Registered: 12-2010 |
Hi Friends, I am currently Working on Separate Delivery in MMS. I am very new to this feature.According to my understanding separate Delivery means we need to convert the content for eg:image into .dcf,.dr file and send .dcf file to mobile.The .dcf file will contain the binary data and some of the headers.I am able to convert the image into .dcf and .dr file,but when i send the .dcf file to mobile(Currently I am using Nokia-N73)it is showing unable to open object type not supported.I have one more doubt here when i need to send .dr file to the mobile as a wapush. we develop MMS application on RHEL-5.I am using perl scripting for converting image to .dcf and .dr file. I am just showing the script what i am using,it takes image and content type as arguments. my $basepath="$ARGV[0]"; $basepath or die "Please pass basepath as an first argument\n"; my $content_name="$ARGV[1]"; $content_name or die "Please pass Content Name as an second argument\n"; my $content_type="$ARGV[2]"; $content_type or die "Please pass Content Type as an third argument\n"; $omaDrm = new chilkat::CkOmaDrm(); $omaDrm->UnlockComponent("anything for 30-day trial"); $omaDrm->put_ContentType("image/jpg"); # Substitute your own URI here: $omaDrm->put_ContentUri("cid:my-text-20060925101425-1396302043@site.com"); $omaDrm->put_Headers("\r\n" . "Version: 01" . "\r\n" . "ContentURI: cid:my-text-20060925101425-1396302043@site.com" . "\r\n" . "ContentType: image/jpg" . "\r\n" . "Encryption-Method: AES128CBC" . "\r\n" . "Content-Name: \"car\"" . "\r\n" . "Rights-Issuer: http://121.222.233.343/systest/car.dr" . "\r\n"); # You may set your initialization vector here: $omaDrm->SetEncodedIV("00010203040506070001020304050607", "hex"); # Your Base64-key for encryption can be set here: $omaDrm->put_Base64Key("BiVVJOQee6y4PWYL+fbvJA=="); my @values = split(/\./,$content_name); pop @values; my $name = ""; foreach my $val (@values) { chomp $val; $name="$name".".$val"; } $name=substr($name,1); my $output_file="$basepath$name.jpg"; my $output_dcf_file="$basepath$name.dcf"; print "output_dcf_file:$output_dcf_file\n"; # In this example, the content is a GIF image. $omaDrm->LoadUnencryptedFile($output_file); #$omaDrm->LoadUnencryptedFile($content_name); # Finally, write the DCF file: #$omaDrm->CreateDcfFile("angle.dcf"); $omaDrm->CreateDcfFile($output_dcf_file); # Create a corresponding .dr DRM Rights Object file (which is an XML formatted file). $dr = new chilkat::CkXml(); $dr->put_Tag("o-ex:rights"); $dr->AddAttribute("xmlns:o-ex","http://odrl.net/1.1/ODRL-EX"); $dr->AddAttribute("xmlns:o-dd","http://odrl.net/1.1/ODRL-DD"); $dr->AddAttribute("xmlns:ds","http://www.w3.org/2000/09/xmldsig#/"); $context = $dr->NewChild("o-ex:context",""); $context->NewChild2("o-dd:version","1.0"); $agreement = $dr->NewChild("o-ex:agreement",""); $asset = $agreement->NewChild("o-ex:asset",""); $context = $asset->NewChild("o-ex:context",""); $context->NewChild2("o-dd:uid",'cid:my-text-20060925101425-1396302043@site.com'); $keyInfo = $asset->NewChild("ds:KeyInfo",""); $keyInfo->NewChild2("ds:KeyValue",'BiVVJOQee6y4PWYL+fbvJA=='); $permission = $agreement->NewChild("o-ex:permission",""); $permission->NewChild2("o-dd:display",""); my $output_dr_file="$basepath$name.dr"; print "output_dr_file:$output_dr_file\n"; $dr->SaveXml($output_dr_file); Help me if the script is wrong.Is there any other way to convert to image to .dcf and .dr file. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2725 Registered: 08-2008 |
I cannot provide any support for whatever scripting library you are using. B ut I can tell you that the device will not be able to access the object unti l it receives the corresponding rights object, which needs to be WBXML encod ed and sent as a WAP Push payload. NowSMS supports sending this type of rights object via its "Send XML Setting s" interface. It also supports this type of object encoding via its DRMCOMP u tility. For more information, use the web site menu bar to navigate to Docu mentation. There is a section on DRM in the last section "Advanced". -- Des (NowSMS Support) | |||
Venky New member Username: Venky Post Number: 2 Registered: 12-2010 |
Thanks for your response.Do you have any correct format or sample file of .dcf and .dr file.i will take that as reference for generating these files.And one more thing while sending .dcf file to the mobile what should be the correct HTTP Response header. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2727 Registered: 08-2008 |
You can generate examples with DRMCOMP included in the NowSMS trial version.= There may be examples elsewhere in this forum (try searching on a keyword o= f DRM and there may be examples.=20 The DCF file has a MIME Content-Type of application/vnd.oma.drm.content. Oth= er than this content type header, I am not aware of any HTTP peculiarities.=20= Combined delivery objects do require a multipart boundary which can be diffi= cult to support in a web server.=20 |