Image URL from publishing Image Site column ?

Hi techies,
I have created one column say PublishingImage of PublishingImage
Type and added it in custom list.
Used this column to upload image. But not able to fetch its URL.
Used the below line to fetch the Url:
SPFieldUrlValue oUrl = new SPFieldUrlValue(Convert.ToString(item["PublishingImage"]));
and assigned the oUrl to Datarow like this:
dr["Image"] =oUrl.Url;
but still not getting the proper URL.
Any help will be appreciated

Find the similar post
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/bafb60d5-38a3-4985-a10f-46ceca576cdb/how-can-i-read-publishing-image-url-field-programmatically
ImageFieldValue _field = Item[FieldId.PublishingPageImage] as ImageFieldValue
Now you can access the properties of the field using this object i.e.
_field.ImageUrl
will give you the url stored.

Similar Messages

  • Need URL from page on site

    I have a page designed in dreamweaver to be used for advertising that can be put on a browser to see the page. It is not part of the site. The file was uploaded to the root directory of the site. Their are no links from the home page to this page. No URL combinations seem to work. Using CS6.When I check the page in the browser it shows fine.

    Open the file in DW.  What is the file saved as?  That's the name you add to
    http://yourdomain.com/
    Nancy O.

  • Link to external URL from flash site

    Is there any way to link to an external URL from your flash
    site without having the flashplayer prompt you to change your
    settings and allow access to that page? (this only applies to swfs
    viewed through a browser)
    the only way around this i've found isn't very useful - you
    have to put a small xml file on the host server where the page you
    want to link to is located. i seriously doubt every site you want
    to link to will allow you to put an xml file on their host server
    just so you can link to their page. the code in the xml file just
    tells flashplayer that the site you are trying to access is safe.
    it's called crossdomain.xml
    anyone have an answer?
    thanks!

    This question was answered by kglad, on Saturday, August 11,
    2007 10:13 AM
    Answer
    no it doesn't. getURL() causes no security issues unless you
    try to open the html locally and (try to) access something on the
    internet.
    unless your "flash site" is your local computer there is no
    security issue. if your local computer is an internet server, you
    just need to set the security settings for your local file and give
    it permission to access the internet zone.

  • Is there a way to know if my Content Type's fields are a Site columns or List columns

    I am totally confused about Site columns, list columns and content types. as seems i will have the same column name , sometimes dealt with as site column while the other as list column. for example i created a new Issue tracking list which comes with the
    following columns:-
    now i realize that the Description column is a list column (not site column) because if i rename the site column named Description, this list column will not get affected, while column such as "Issue status" is a site column because if i rename
    the site column named "Issue Status" the column inside the "Issue" content type will get affected. while there are two site columns named Description but none of them are used insidie the "Issue" content type, and the Description
    field in the above picture is a list column !!
    so can anyone advice from where i can differentiate if a column inside the Issue content type is a site column or is a list column ???
    Thanks

    Hi John,
    Thanks for posting your issue, Kindly browse the below mentioned URL to identify the site columns and Content Type in your Top level site
    http://www.kalliance.com/blog/tips-tutorials/microsoft/identifying-site-columns-content-types/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Link to external URL from online swf

    Is there any way to link to an external URL from your flash
    site without having the flashplayer prompt you to change your
    settings and allow access to that page? (this only applies to swfs
    viewed through a browser)
    the only way around this i've found isn't very useful - you
    have to put a small xml file on the host server where the page you
    want to link to is located. i seriously doubt every site you want
    to link to will allow you to put an xml file on their host server
    just so you can link to their page. the code in the xml file just
    tells flashplayer that the site you are trying to access is safe.
    it's called crossdomain.xml
    anyone have an answer?
    thanks!

    no it doesn't. getURL() causes no security issues unless you
    try to open the html locally and (try to) access something on the
    internet.
    unless your "flash site" is your local computer there is no
    security issue. if your local computer is an internet server, you
    just need to set the security settings for your local file and give
    it permission to access the internet zone.

  • How do I publish my site without using MobileMe?

    I have been publishing an iWeb designed website to my own domain name for more than a year without using MobileMe.
    Had a computer repair done and Apple did a clean install. I am now rebuilding the site because my files don't talk to iWeb after reinstalling the software. Yes, I had everything backed up three different ways, including TimeMachine, but the external drive died at the same time as my laptop.
    Now I can't figure out how to just use my ftp to publish. Every time I try, it wants me to use MobileMe. I don't want to use MobileMe. How do I get to an option to just enter my URL and publish the site?
    Previous versions of iWeb 09 gave me a screen to put in my URL, but not the latest permutation of iWeb 09. Help!

    Greetings,
    Sorry to hear about the loss of data. Multiple backups are a good idea. I burn my iWeb domain file to a CD (along with my calendars and addressbook) once a month as well as maintain a Time Machine backup. I use MobileMe's backup program to trigger these backups, however if you are not a MobileMe member you can search online for other backup programs that can do this for you on a regular basis.
    You can input your FTP host settings by following the steps in the iWeb help menu under "FTP": http://docs.info.apple.com/article.html?path=iWeb/3.0/en/6838.html
    Hope that helps.

  • Image colors get massacred by iWeb when I publish the site

    Hi!
    Perhaps someone can help?
    I build my pages from within iWeb and the images look fine. Then I publish my site in a local folder and look at it using Safari. The images in Safari are clearly much darker than in iWeb using the same machine with the same screen. What is going on here?
    Obviously, iWeb is somehow transforming the color space when it subsamples the images. But to what end, and how can this be controled?
    Many thanks in advance,
    MP
    Alu 15, 2.33 Ghz   Mac OS X (10.4.9)   iWeb 1.1.2

    iWeb is changing your images to PNG image format.
    So two choices for you:
    1. Convert images on your own to PNG before using them in iWeb
    2. Prevent iWeb from changing your image to PNG by using the ORIGINAL SIZE button and by NOT using any effects like the frames and shadow effects

  • I need to select and upload a image and corresponding url from an external website using file upload control in MVC4. Please help

    I need to select and upload a image and corresponding  url from an external website using file upload control in MVC4.
    Please help
    Latheesh K Contact No:+91-9747369936

    This forum supports .NET Framework setup.
    As your issue appears to have nothing to do with .NET Framework setup, please ask in the MVC forums for best support.
    http://forums.asp.net/1146.aspx/1?MVC

  • How can I stop other people copying my images from my web site.

    How can I stop other people copying my images from my web
    site.
    I use dreamweaver CS3 for the mac

    both are a waste of time. Fornication with a leaky condom.
    Pointless and not
    worth the effort. Or worse!
    the obfuscation JavaScript will get the site to not be
    listed in any search
    engines because they can't "see" the page or any links on it.
    You would be
    "protecting" the images but no one would find them.
    And all of those obfuscation JS things can be reverse
    engineered. In most
    cases- it's not worth it to prove it can be broken other than
    to prove it
    can be done. The images are nothing special in almost any
    site using one of
    those $29.95 applications.
    Have you done the basics? Turned off directory browsing or
    put a default
    index page in every folder? A few years ago i ran across a
    site with one of
    those block right click scripts on it. Dumb curiosity- opened
    a picture, and
    looked around the directory. All open directories. A block
    right click
    script and every folder on the site was open.
    /photos/private/girlfriend/hottub
    Nuff said. The blocking script made me curious enough to poke
    around the
    directories.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Is it possible to download software from the Adobe site which will enable me to use the raw processor in Elements 9, to work on images shot with a Nikon D800 DSLR?

    Is it possible to download software from the Adobe site which will enable me to use the raw processor in Elements 9, to work on images shot with a Nikon D800 DSLR?

    The D800 is not on the list of supported cameras for the Camera Raw 6.5 update, bur the D80 is:
    http://www.adobe.com/special/photoshop/camera_raw/Camera_Raw_6.5_ReadMe.pdf

  • Automator Stops Responding while trying to perform "Get Image URLs from Webpage"

    I have seen it in many tutorials, and it seems strait forward enough, so here is my order of events for my scriptl;
    Get Current Webpage from Safari
    Get Image URLs from Webpage [linked from these webpages]
    Download URLs [Downloads]
    However when I run this script it returns the get current webpage quickly but then hangs on Get Image URLs from webpage either never passes or takes 700+ seconds to move to the next step.
    The times it did pass to the next step it worked 98% still missed images occasionaly.
    After I figure out how to fix this issue, I am looking for a way to make it create a new folder, and name it according to the sub directory of the webpage, for example:
    http:\\www.mypictures.com\Birthday\01.JPG
    http:\\www.mypictures.com\Birthday\02.JPG
    would create folder Birthday, and save images 1 and 2
    Then in the future I want to download another set such as;
    http:\\www.mypictures.com\MothersDay\01.JPG
    http:\\www.mypictures.com\MothersDay\02.JPG
    As these are both named 01.JPG the sets would overwrite, or add strange numbers and not divide by set by default;
    So I need this script to create folders based on Directory (portion of url)  In my example it would be MothersDay, and Birthday folders.
    Any help would be greatly appreciated!
    Thanks in advance!
                    Mike

    I should add, it has simply frozen and stopped responding about 95% of the 20 times or so I have run it. I have tried rebooting (not sure if that helps on Mac, I'm still new to the OS been a windows user for a long time but so far I love my Mac).

  • How do I stop iWeb from scrambling my site when I go to publish?

    Everything looks perfectly fine on my site when I am editing it,
    but when I go to publish, everything- links, normal text, media, images- becomes extremely scrambled. I have tried emptying the cache and rebooting my computer, as well as opening the domain in a new browser, but so far nothing has worked. Ideas?
    (I've attached screen shots of what it looks like on iWeb and what it looks like post-publishing.)

    When you have problems like this, publish your site to a local folder and launch this version in the browser to see if the cause is iWeb, FTP or on the server so that you know what to troubleshoot.
    One thing that can cause problems is the use of special characters in page and file names that form part of URLs. Your Music_&_Media page is displayed like MUSIC_%26_MEDIA.html.
    A lot of people won't be able to hear the audio file on this page it if they don't have the QuickTime plugin. Here's a better way.
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • IWeb Widgets gone from Published Site Hosted by GoDaddy

    I have been using third-party widgets to create components for my iWeb (3.0.4 version) website. They are Beyond iWeb Pro-Pack items. (I copy to iWeb html snippet code windows the code from the Beyond iWeb Pro-Pack widget and hit "apply" and they work in TEST mode). I tested everything on my site to a local file prior to publishing the site to the internet. Upon publishing to the internet, none of these Pro-Pack widgets are visible on my site. They all functioned fine when they were in Local file "TEST" mode. They don't even appear as blank boxes or question marks (which has happened when I have incorrect paths). I wonder if it is the pathways to GoDaddy? I have spoken to GoDaddy techs about my dilemma and they only say the path to my webroot is:
    /public_html
    This I don’t understand. Don’t I need http://www. ….. and other file references to get to the specific file in my webroot at GoDaddy?
    Beyond iWeb Pro-Pack widgets I am using:
    Apple Style Video Gallery (Youtube or Vimeo)
    Simple Hover Effect
    Panoramic Slideshow (Smooth Div Scroll)
    Photo Slideshow
    When I created the Pro-Pack widgets for iWeb I used file links (through GoDaddy hosting) like http://www.wildmonkeysproductioons.com/images/WMP_VIDEO_PHOTOS/....specific photo.jpg
    or---inside the cover path [in Apple Style Video Gallery (Youtube or Vimeo)] or a Youtube link in the video path (example): http://www.youtube.com/embed/LWWLM8QhVaw?rel=0
    I also have non-Beyond iWeb Pro-Pack generated widgets like Youtube video widgets that are also missing from the website. I believe the problem is not with my Pro-Pack widgets but with my pathways to GoDaddy.
    Does anyone have any suggestions or helpful ideas?
    I do not understand website building very well and website code, for sure, I do not know.
    Dan

    I took your advice and changed some file and folder names. I then updated my widgets to create continuity of connection with their files and photos in GoDaddy's File Manager. Now the BeyondiWeb widgets [Panoramic Slideshow (Smooth Div Scroll)] no longer recognize the path to them. No matter what I use as a path the link is broken.
    GoDaddy says the following is the absolute path: /home/username/public_html/
    My user name: wildmonkeys
    Examples of paths are below:
    http://www.wildmonkeysproductions.com/public_html/WMP_Website_Banner_Photos/2013 _MCA_Symposium_GRAND_CANYON_Presentation-26_Dan_small.jpg
    /home/wildmonkeys/public_html/WMP_Website_Banner_Photos/2013_MCA_Symposium_GRAND _CANYON_Presentation-26_Dan_small.jpg
    /public_html/WMP_Website_Banner_Photos/2013_MCA_Symposium_GRAND_CANYON_Presentat ion-26_Dan_small.jpg
    An example of a previously successful linked path (prior to file and folder name changes):
    http://www.wildmonkeysproductions.com/WMP Website Banner Photos-small Jpegs NEW/005-RIVER DISCIPLINE-02 Dan*-small
    Any ideas?
    Dan

  • I want to add image in column is it possible then how to add image in data base what data type we need to do

    I want to add image in column is it possible then how to add image in data base  what data type we need to give we required any casting  please show me one example
    jitendra

    Hi again,
    Several points that can help more:
    1. If you are working with Dot.Net, then I highly recommend read the first link that you got! This is nice and simple coding. Another option is this link which is even better in my opinion:
    http://www.dotnetgallery.com/kb/resource21-How-to-store-and-retrieve-images-from-SQL-server-database-using-aspnet.aspx
    2. As i mention above both link use the column's type image. There are several other option of working with Files. In most of my applications architecture I find that it is better to use a column which let us use any type of file and not an image column.
    In choosing the right column's type for your needs basically your fist question should be if if you want to store your data inside relational database environment or outside relational environment. It is a good idea to look for blogs on this issue. Next
    if you chose to store your data inside then you need to chose the right column type according to your server version. I highly recommend to look for blogs on the differences between those column's types: IMAGE, 
    Check those links:
    To BLOB or Not To BLOB: Large Object Storage in a Database or a Filesystem
    http://research.microsoft.com/apps/pubs/default.aspx?id=64525
    FILESTREAM feature of SQL Server 2008
    http://msdn.microsoft.com/library/hh461480
    FileTables feature of SQL Server 2012
    http://technet.microsoft.com/en-us/library/ff929144.aspx
    Compare Options for Storing Blobs (SQL Server)
    http://technet.microsoft.com/en-us/library/hh403405.aspx
    Binary Large Object (Blob) Data (SQL Server)
    http://technet.microsoft.com/en-us/library/bb895234.aspx
    Managing BLOBs using SQL Server FileStream via EF and WCF streaming
    * Very nice tutorial!
    http://petermeinl.wordpress.com/2012/02/20/managing-blobs-using-sql-server-filestream-via-ef-and-wcf-streaming/
    [Personal Site] [Blog] [Facebook]

  • Is there a way to play an mp4 file at the beginning of a published project only when the project is accessed from a specific site?

    Is there a way to play an mp4 file at the beginning of a published project only when the project is accessed from a specific site?
    A little background info. I use Captivate 7 and currently have over 100 projects that I maintain on a quarterly basis. I publish using the SWF format and upload the swf/htm files to a server where they are then accessed from a few locations (within our online documentation, in our software product, on two different websites). Many of the projects are linked so some will be viewed as a series and others viewed as a standalone video. Each video uses the same template and includes an intro and end slide. Now my organization wants to implement a new intro to all videos (those I publish and those from several groups across the organization). My current intros provide overview material for the specific video so the new intro, which is an animation with audio in mp4 format, would need to be placed at the start of each project. The issue is, the intro adds 9 seconds to every video and in many cases doesn’t add any value (say, if a user accesses the video from within our product or views the videos as a series). I’ve talked it over with my boss and we want to try to add the intro only to videos accessed from site X, not any other location. So now to my question. Is there a way to play an external mp4 file (intro) only when the published project is accessed from a specific site, therefore eliminating the need to update each project? Maybe there's a way to add a parameter or variable to the URL or the html code?
    Thanks in advance for your suggestions. Please let me know if you need additional information.

    AimeeLove,
    I have a solution for you.  You may have to modify the code a little bit based on how long the timeline animation is for your clock.  I based mine on 3 seconds to complete a minute hand sweep around the clock.
    Milliseconds for each point on the clock:
    12 = 0
    1 = 250
    2 = 500
    3 = 750
    4 = 1000
    5 = 1250
    6 = 1500
    7 = 1750
    8 = 2000
    9 = 2250
    10 = 2500
    11 = 2750
    In the mouseover section for 12 o' clock, put this code...
    myVar = setInterval(function(){
         var pos = sym.getPosition();
         if (pos > 0 && pos < 50){
              sym.stop(0);
              clearInterval(myVar);
    },10);
    When you point to the time, the setInterval method loops every 100th of a second and checks the current position of the timeline.  When the timeline reaches the range between 0 and 50 milliseconds (almost impossible to hit 1 specific point), the timeline will stop at 0.  Also, the clearInterval will be fired to stop the loop.
    In the mouseout section, put this...
    sym.play();
    clearInterval(myVar);
    It start the clock again, and it also clears the loop in case you mouseout before you reach the range.
    Make sure that myVar is a global variable so you can clear it from the mouseout section.
    Repeat this for each point on the clock.  To avoid potential conflicts, you may want to use my12, my1, my2, etc. instead of myVar.  I put the milliseconds at the top that you would use as the beginning of the range.  50 milliseconds should be enough to catch it.  So, for 5 o' clock, you would make your range between 1250 and 1300.
    Let me know if you have any questions.  Thanks!
    Fred

Maybe you are looking for

  • Dropped WD external hard drive will not mount

    Hi there, First ever post on this forum! I have a mid-2010 macbook running Mountain Lion A 2TB Western Digital Hard Drive dropped to the floor while plugged in and spinning. I reconnected it, and after a few minutes mounted, showing all my files. The

  • Vendor Email id in  PO Output tabhttps

    Hello All, We have a business requirement where, we need to modify the vendor contact details (Email, phone, fax) while creating the PO. After shopping cart approved completely, then the PO will gets created automatically. To meet this requirement I

  • Connect n73me to internet by computer and bluetoot...

    i have problem to connect n73me to internet by computer and bluetooth and i don't want the mobile to be the modem i want the mobile to connect to internet by computer adsl and i have bluetooth at computer but when i try to connect it it dosen't conne

  • Why did backing up to Time Machine become super slow?

    Trying to backup to my external HD. I'm using Snow Leopard, and this isn't the first back up. Had computer for 2  years, and this just started about a month ago. No new updates around that time that I can recall. Backups taking more than 24 hours! I

  • Assignment

    Hey all, Just a quick question - it'll sound dumb to those of you know Java... I've seen an assignment like this: "temp = (object) Vector.elementAt(...)" What does the object in brackets mean? Does it mean that the variable temp is created as that ki