Display image from image path (ASP)

Help needed please. Sorry if the topic has already been
discussed. I did a search but it returned nothing.
My problem.
I can display images on my website by choosing the datasource
and the image path from by database. No issues here. What I want is
to be able to open up a larger image by clicking on this image.
I created another page. On this page is an image placeholder.
The source again is the datasource with the image path to a larger
image. I used a behaviour to open this page however, it shows the
same image (the 1st record in my recordset) whichever image you
click on my origianl page.
Can someone please tell me how to do it? It would be
appreciated.

I'm assuming that you are using a repeat region to display
the original
images.
You will need to pass the Primary Key to the new page, and
filter the
recordset on the new page based on that Primary Key.
For example, this would be the link to the new page:
<a
href="page2.asp?ID=<%=(rsImages.Fields.Item("ImageID").Value)%>"
Then on the new page filter the recordset SQL based on the
ImageID,
something like this:
<%
Dim rsImage__MMColParam
rsImage__MMColParam = "1"
If (Request.QueryString("ID") <> "") Then
rsImage__MMColParam = Request.QueryString("ID")
End If
%>
<%
Dim rsImage
Dim rsImage_cmd
Dim rsImage_numRows
Set rsImage_cmd = Server.CreateObject ("ADODB.Command")
rsImage_cmd.ActiveConnection = MM_connImage_STRING
rsImage_cmd.CommandText = "SELECT * FROM tblImages WHERE
ImageID = ?"
rsImage_cmd.Prepared = true
rsImage_cmd.Parameters.Append
rsImage_cmd.CreateParameter("param1", 5,
1, -1, rsImage__MMColParam) ' adDouble
Set rsImage = rsImage_cmd.Execute
rsImage_numRows = 0
%>
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com
"leeweatherill" <[email protected]> wrote in
message
news:ft00gm$spm$[email protected]..
> Help needed please. Sorry if the topic has already been
discussed. I did a
> search but it returned nothing.
>
> My problem.
> I can display images on my website by choosing the
datasource and the
> image
> path from by database. No issues here. What I want is to
be able to open
> up a
> larger image by clicking on this image.
>
> I created another page. On this page is an image
placeholder. The source
> again
> is the datasource with the image path to a larger image.
I used a
> behaviour to
> open this page however, it shows the same image (the 1st
record in my
> recordset) whichever image you click on my origianl
page.
>
> Can someone please tell me how to do it? It would be
appreciated.
>

Similar Messages

  • Display Image from Local path "c:\image.gif"

    Hi Experts,
    Is there anyway to display an image from local path i.e "c:\img.jpg".
    I need to display an image from the path in Dialog(Screen) programming.
    I need to do it using program not any other way...
    Can anyone suggest me a method please.
    Thanks
    Regards
    Naveen

    Hi Naveen,
    You'll have to create a custom control for this and perform coding like this:
    data piccon type ref to cl_gui_custom_container.
    data my_piccon type ref to cl_gui_container.
    data my_pic type ref to cl_gui_picture.
    data my_container type ref to cl_gui_container.
    * invoking the static attribute of the class.
    my_container = cl_gui_container=>default_screen.
    create object piccon
    exporting
    parent = my_piccon
    container_name = 'IMG_CON'
    * STYLE =
    * LIFETIME = lifetime_default
    repid = sy-repid
    dynnr = sy-dynnr
    * NO_AUTODEF_PROGID_DYNNR =
    exceptions
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    others = 6
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    create object my_pic
    exporting
    * LIFETIME =
    * SHELLSTYLE =
    parent = piccon
    * NAME =
    exceptions
    error = 1
    others = 2
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    * Can be used to load the picture from the presentation server.
    call method my_pic->load_picture_from_url
    exporting
    url = 'file://D:mydataPicturesMisc_pics 1fw1.jpg'
    * IMPORTING
    * RESULT =
    exceptions
    error = 1
    others = 2
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.

  • Images from web path won't show in Crystal Reports XI R2

    Hi, I have a problem with my Crystal Report XI R2. I am trying to get images from web as well as static google map using OLE object. After setting the Graphic Location. No images are shown. I am using Windows XP SP3.
    Also, I tried to create a simple report using same program and version installed in my Windows 7 Laptop. I inserted OLE object with graphic location from web like http://www.domain.com/image.jpg and it appears... same as with google static map with given latitude and longitude. And it works!
    Is there any problem with my windows XP machine? any video card issue or dot net version issue or firewall issue?
    Please help. Thanks

    To add to Don's reply. Fiddler is a great HTTP sniffing utility that should be able to tell you what is happening as far as the permissions, etc., etc.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Copy or extract an image from image fill

    It's pretty frustrating that Numbers puts images into Image Fill, so you can't easily copy/paste an image in a cell.
    But it's extra frustrating that I can't seem to find a way to copy or otherwise extract an image that is an image fill in a cell.
    That means that the only way to extract the image to use in something else is to expand it as big as possible and then do a screen capture (command-shift-control-4) of that image. A total inefficient hack, sadly.
    Suggestions are very welcome.
    Note: comments like "Numbers isn't a database" and "an image is not a formula" are not only unhelpful, but don't actually answer the questions. We're required to use it.

    Start Numbers.
    Open the worksheet with the image fill.
    Select the (Numbers) cell with the image you want to copy.
    Open Inspector from the Numbers toolbar.
    Click on either Table Inspector tab or the Fill Inspector tab. For this specific task, there is no difference.
    Click on the thumbnail image displayed. The outline should turn blue.
    Command key + C (or from the menubar, Edit, Copy) to copy the image to the clipboard.
    Now open Preview. If Preview is not already open, clicking on any image listed in Finder (.jpg, .png) will open it.
    Now in the Preview menubar, select File, New from Clipboard.
    When you click Save, you can save the image in your choice of graphic formats from the dropdown menu.
    Message was edited by: kostby

  • Saving an image from Image Field

    Hello all!
    I am working on a form for someone with a certain request.
    I am wondering if images from the Image Field can be saved? I tried right clicking on the image but no menu pops up so I am looking for other options. Are there any ways to work around this?
    Thanks in advance!

    Hi radzmar,
    Thanks for the reply. If any scripting was involved, would it be pretty lengthy/complex?
    Thanks again! Any information helps

  • Unable to save images from image preview or photoshop to network drive

    Hello,
    I have an issue when viewing an image file from image preview or photoshop and saving it to a mapped network drive. When trying to save it to the drive, I am met with the error "You don't have sufficient access privileges". However, I am able to save the image to my desktop THEN place it in my mapped network drive.
    This has left me pretty puzzled. Has anyone else run into this issue? It was working fine a couple of months ago, and I thought it might correct itself. The issue remains at large. I am not sure why it would stop working, but still works if I click and drag files to it.

    Your assumption is correct.
    The workflow is:
    Select Image in Aperture for external editing.
    Send Image to external editor via one version of Aperture's "Edit with NameOfExternalEditor" command.
    Aperture creates a new Original based on the selected Image and opens specified external editor with the Original loaded.
    You make changes to this file in the external editor.
    You close this file and select "Save Changes" (or similar) when prompted.
    You return to Aperture and find an Image based on the newly-created Original selected.  This Image shows the changes you made in the external editor.  It is badged with Aperture "Edited externally" badge.
    Let's check a couple of things:
    - Are you showing all Images in the Aperture Browser?
    - Are there any externally-edited Images in the Project after you have completed editing in Photoshop?
    For the first, clear any filter you have set for the Browser by clicking the dark-on-light drop-down magnifying glass icon _in_ the Browser search field and selecting "Show All".
    For the second, filter for externally edited Images by clicking the dark-on-light magnifying glass icon _next to_ the Browser search field and setting a filter with the Rule "File Type" set to "is", "externally edited".
    Report back.

  • Cliping image from image strip in iphone game development

    Re: Hi,
    Thanks KilledTeam for Reply.
    I mean , I have 5 images  in a single frame. I need to animate one by one image(eg: 1->2->3->4->5 first time then 1->2->3->4->5 second time and so on..).how to animate all five images.
                                         or, Tell me any idea to crop 2nd image from 3 images(given in a single frame). all are .png format. 
    Thanks
    ravindra

    Re: Hi,
    Thanks KilledTeam for Reply.
    I mean , I have 5 images  in a single frame. I need to animate one by one image(eg: 1->2->3->4->5 first time then 1->2->3->4->5 second time and so on..).how to animate all five images.
                                         or, Tell me any idea to crop 2nd image from 3 images(given in a single frame). all are .png format. 
    Thanks
    ravindra

  • How to load images from different path

    Hi,
    i'm triying to load an image using the next code:
    String path="C:/images/tv_on.gif";
    java.net.URL imgURL =new java.net.URL(path);
    img=Toolkit.getDefaultToolkit().getImage(imgURL);
    but when it is compiled it returns MalformedURLException.
    the image is in my local directory so i've tryed to define
    path="file:///C:/images/tv_on.gif";
    becuase the port and the local host name aren't needed.
    Anyway it does not work.
    I don't know how to load an image that it is in a file in a different path from the mainclass path
    CAN ANYONE HELP ME?

    sorry to bother, similar like above, i tried many times on my computer to load a simple image in java application.. here's my code:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import javax.swing.*;
    public class View extends JFrame {
         private URL imageURL;
         private File file;
         private Image sourceImage;
         private String name, title, message;
         private int width, height;
        public static void main(String[] args) {
            System.out.println( "Hello Eros!!!" );
            View img = new View();
        public View() {
             name = "D:/shared/inputpic.gif";
             file = new File( name );
            Toolkit toolkit = Toolkit.getDefaultToolkit();
            try {
                imageURL = new URL("http://www.google.com.my/images/logo_sm.gif" );
            } catch (MalformedURLException e) {
            if ( file == null ) {
                sourceImage = Toolkit.getDefaultToolkit().getImage( name );
                System.out.println( file );
            } else {
                sourceImage = toolkit.getImage( imageURL );
                System.out.println( file );
            width = sourceImage.getWidth( this );
            height = sourceImage.getHeight( this );
            System.out.println( "Pixel = " + width + "x" + height );
            if ( width * height == 1 ) {
                title = "Greetings";  // Shown in title bar of dialog box.
                if ( file == null ) {
                    message = "Unable to load the file " + name;
                } else {
                    message = "Unable to load the link " + imageURL;
                JOptionPane.showMessageDialog(null, message, title, JOptionPane.INFORMATION_MESSAGE);
    }could anyone test this n give my the reason i couldnt even load the image

  • Dynamic Image From Network Path

    I am trying to setup dynamic student photos onto a report, we are lucky enough to know the photo filenames as they are the same as our student_id's so I setup in a formula:
    Spot\Image_Bank\QLSPhotographs\Images\" + {Photo_List_By_Course;1.student_id} + ".jpg"
    as the image path I also tried:
    "I:\QLSPhotographs\Images\" + {Photo_List_By_Course;1.student_id} + ".jpg"
    as I have it mapped as a local drive both these options worked fine on my local machine running the website up in Visual Studio 2008 rather than IIS. Upon taking the website to our web server I tried the report using the "
    Spot\Image_Bank..." option (as it wouldn't have the mapped I drive). This did not however work.
    Do I need to adjust the formula?
    What user/security would it run under the folder has read permission for Network Service, All Staff (our group for staff), System, Domain Admins and various others. The website seems to run under Network Service as I had to apply write access to a folder before in the website.

    Is your web application able to retrieve the files from that location, independent of whatever you're doing with Crystal Reports? If not, the Crystal engine won't be able to, either. Make sure that the application is impersonating your domain users properly, assuming those are the credentials you're using to access that shared drive.

  • Show image from image library in another list in standard view

    I have a few images in an image library. In an "Awards" list, I want to show the images in a column named "CatImage," based on the value of a column named "Category" in the same list.
    So, for instance, there is an item in the Awards list where the Category value is "Great Teamwork." For that item, I want to show the "teamwork.png" image file from the image library in the "CatImage" column.
    In the image library I have the following items:
    Name                       Path
    customerservice       /Image%20Library/customerservice.png
    hitthemark               /Image%20Library/hitthemark.png
    improvement           /Image%20Library/improvement.png
    results                     /Image%20Library/results.png
    teamwork                /Image%20Library/teamwork.png
    The "Awards" list has the following columns:
    Item    | Category              | Created By  | Modified      |  Status      | CatImage
    Item1  | Great Teamwork  | Dave            | 10/1/2014  | Approved   | <image>
    Is there a way to do this with some java code in a CEWP?
    Dave Englund

    you need to use lookup column .
    Try this 
    http://blogs.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=53

  • Protect Image from image capture software

    Is there anyway to prevent people from using capturing
    software to capture images.

    Hawkie1234 wrote:
    > Is there anyway to prevent people from using capturing
    software to capture images.
    if user can see it, it can be captured. Any tools for
    preventing capturing
    can be easily worked around.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Problem with downloading images from image URL's _ Plzz help me urgent

    Hello,
    I have a set of URL's in a hashtable. Now using the the enumerator, for each URL, I am trying to download the Image. The example for the image URL is something like this:
    http://gallery.hd.org/_exhibits/flowers/_more2003/_more09/flower-Holland-Netherlands-RF.jpgI am using ImageIO.read(new URL("URL")) for downloading the image
    My problem is, if I get a URL which is broken link like the below exaple
    http://www.ossrc.org.in/images/cii-shiksha.jpgmy code is waiting for for the data to come in. The code is hanging there. My code does not terminates but hangs and does not proceed futhur. How to resolve this problem. Please tell me.
    Its very urgent plzzzzzzzzz.
    Thanks,
    chaitanya
    Message was edited by:
    RKC

    Oh, too bad, it's urgent. I must be too late.

  • Download image from image field

    Hi to all gurus,
    I have an interactive form with some image fields in which a user can upload images. My question is: another user can download these images previously uploaded? Is there a way to do this?
    Thanks in advance,
    Enrico

    You can also expand the image to its full size before downloading or saving it.<br />
    There is usually a link to do that.
    If the pref doesn't exist then create a new Boolean pref with the name browser.enable_automatic_image_resizing , but that pref should be there.
    *http://kb.mozillazine.org/about:config

  • Retrive image from image data

    I am generating UI by mapping delphi form 2 java swing.
    In delphi.dfm file for a picture some picture data is comming like this..
    Picture.Data = {
    07544269746D61704E310000424D4E3100000000000036040000280000009900
    00004A0000000100080000000000182D00000000000000000000000100000001
    0000FFFFFF000808080010101000181818002121210029292900313131003939
    3900424242004A4A4A00525252005A5A5A00636363006B6B6B007B7B7B008484
    84008C8C8C00949494009C9C9C00ADADAD00C6C6C600CECECE00D6D6D600DEDE
    So suppose one picture is in the delphi form and i want to put that picture in my generated UI of java. how can i get the picture? is there any other way or i have to decode that picture.data and how? can any body help me?
    thanks,
    gantait

    Well, this sounds like an interesting problem.. so I'll pitch in... I'd say EXPIRIMENT!!!
    What?
    Well what I mean is...
    - Make a picture of size 3 wide by 2 high
    - use simple colors... 2 or 3 only
    - look at the Picture.data value
    - if you have a string with 3 sets of 2 characters then your format is probably RGB, if 4 sets of 2 chars then it could be ARGB.
    Example:
    P.d = {0000FF0000FF00FF00FF0000FF000000FF00}
    view as...
    P.d = {0000FF 0000FF 00FF00 <next line> FF0000 FF0000 00FF00}
    That has 6 pixel colors...
    If you know how many pixels you have (6) then you can split the array by an even increment... so 36 characters divided by 6 pixels. Now you have 6 characters per color. So color in this case represents an RGB value. R = red (first set of two) G = green (second set of two) B = blue (third set of two)
    So just expiriment and find out the format thats being saved, tell me how it works out :)

  • Insert Image in SharePoint List & Display Image from SharePoint List using C# Pragmatically

    hi 
    i have a share point custom list with the following columns and its types.
    Title--------------->Single line of test 
    FirstName--------------->Single line of test
    LastName--------------->Single line of test
    Description--------------->multiple line of test
    Link--------------->Hyperlink or Picture
    Image--------------->Hyperlink or Picture
    I've to create a visual web part with the following input fields and which can insert following items in the above list columns
     Title                  asp textbox
    First Name         asp textbox
    Last Name        asp textbox
    Description        asp textbox
    Link                  asp textbox
    Image              file upload control
    Submit             asp button
    when i click browse button for image control in above web part it browses image .jpg,jpeg or .png file from my computer into image input field above and when i click submit button it must be submitted in the Image column in the above list.
    i want to know how can i do that in c# pragmatically. 
    i've another visual web part which should read the image from the list in Image column and display it in image control on the web part.
    like this
    <img id="imgdisplay" runat="server" src="" />
    how can i read image from image column through c# pragmatically.

    Hello,
    You can't directly add picture into "Hyperlink or Picture" column because this column takes URL value and image is binary etc. You can first upload that picture into picture library (create new picture or document library) then add that image link
    into that column.
    To add/edit "Hyperlink or Picture" column, SP provided special class called "SPFieldUrl". Wheer you need to pass URL and description as parameter.
    Refer this link for you ref:
    http://stackoverflow.com/questions/23829576/how-to-decide-sharepoint-url-field-is-set-as-hyperlink-or-picture
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • How do you know if your Mac is 2.4 GHz or 5 GHz 802.11n?

    We have a 2007 iMac and an original MacBook Air, which were both bought in January of 2008. And a brand new 17-inch MacBook Pro. Our Time Capsule is the older non-dual band model which was bought with the iMac and MacBook Air, again in January of 200

  • Assigning physical file to logical file.

    How to configure application server file with logical file.( I don't have full idea about this .  what I know is using /nfile tcode we assign logical file name to application server path and using 'FILE_GET_NAME' function module, by supplying logical

  • STS not locking data and layout

    Hi, we are trying to use STS for approval.  We have it configured and it seems to work fine but it does not lock the data when it is "approved".  I check the tables UPS_LOCKS and UPS_HASH and the seem in sync, after the approval there is an entry in

  • Missing Top Level Navigation par

    Hi All, I have mistakenly cleaned SAP standard Top Level Navigation par from my portal server using Administrator Console tool. I am currently working on SAP EP 7.0 SP18 and I need to get the par file back along with the particular Top Level Navigati

  • Illustrator and InDesign CC cannot read the fonts in Suitcase

    The Illustrator and InDesign CC versions cannot read my fonts in Suitcase Fushion 3. Is there any solutions? Thank You!!!!