View image from local

Hi,
I'm using J2ME wireless toolkit, and I want to know is it possible to view image from local(eg. C:\WTK22\appdb\DefaultColorPhone\filesystem\root1). I've written some code to view form the folder but it appear "error: null".
mage storedImage = null;
          String picLink = "file://localhost/" + currDirName + fileName;
          try{
               storedImage = Image.createImage(picLocation);
          catch(Exception e){
               System.out.println("Error here: " + e.getMessage());
          }

Yes, it is possible.
They were demonstrating the RT display at NI Week. It is part of the RT features of Vision 6.1. You can route an IMAQ display window to the video output on the PXI chassis. Anything you display in that window will show up on your screen.
Bruce
Bruce Ammons
Ammons Engineering

Similar Messages

  • How to view images from application's path?

    Hello,
    I am using the codes below to view images from an ACCESS database listed as ".\image.png", the images are included in the application's path. I'm able to view the images while running crystal reports alone; However when I include the same report and databse in my VB.NET application, the images don't show. I was told that the report looks for the images in a temp folder, an alternative solution would be to copy the image files to a temp folder before attempting to run the report, but so many things can go wrong with such approach. Do you have a better solution to this problem?
    Thanks in advance.
    Victor
    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim myaop6viewer As New aop6viewer
            Dim myaop6report As New AOP6V2
            Dim crConnectionInfo As ConnectionInfo = New ConnectionInfo
            crConnectionInfo.ServerName = (Application.StartupPath & "\AOP6V2.mdb")
            crConnectionInfo.Password = "testaop"
            setDBLogonForReport(crConnectionInfo, myaop6report)
            myaop6report.RecordSelectionFormula = "isnull({image.country}) = false"
            With myaop6viewer
                .CrystalViewer22.ReportSource = myaop6report
                .Show()
            End With
            myaop6report = Nothing
        End Sub
        Private Sub setDBLogonForReport(ByVal connection As ConnectionInfo, ByVal report As ReportDocument)
            Dim mytables As Tables = report.Database.Tables
            Dim mytable As CrystalDecisions.CrystalReports.Engine.Table
            For Each mytable In mytables
                Dim mytablelogoninfo As TableLogOnInfo = mytable.LogOnInfo
                mytablelogoninfo.ConnectionInfo = connection
                mytable.ApplyLogOnInfo(mytablelogoninfo)
            Next
        End Sub

    I tried following your suggestions, but I'm unable to link to the image file from the application, can you please help me link to the image from the application.
    1. Created a formula name test with the folowing data:
    ".\test.png"
    2. In the Gphics Location, entered:
    {@test}
    3. Below is the code in my application
    Imports System.Data.OleDb
    Imports Microsoft.VisualBasic.ControlChars
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.CrystalReports.Engine
    Public Class Form1
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim myaop6viewer As New aop6viewer
            Dim myaop6report As New AOP6V2
            Dim crConnectionInfo As ConnectionInfo = New ConnectionInfo
            crConnectionInfo.ServerName = (Application.StartupPath & "\AOP6V2.mdb")
            crConnectionInfo.Password = "testaop"
            setDBLogonForReport(crConnectionInfo, myaop6report)
            myaop6report.DataDefinition.FormulaFields.Item("@test").Text = "path + picture name" '???????
            myaop6report.RecordSelectionFormula = "isnull({image.country}) = false"
            With myaop6viewer
                .CrystalViewer22.ReportSource = myaop6report
                .Show()
            End With
            myaop6report = Nothing
        End Sub
        Private Sub setDBLogonForReport(ByVal connection As ConnectionInfo, ByVal report As ReportDocument)
            Dim mytables As Tables = report.Database.Tables
            Dim mytable As CrystalDecisions.CrystalReports.Engine.Table
            For Each mytable In mytables
                Dim mytablelogoninfo As TableLogOnInfo = mytable.LogOnInfo
                mytablelogoninfo.ConnectionInfo = connection
                mytable.ApplyLogOnInfo(mytablelogoninfo)
            Next
        End Sub
    Thanks,
    Victor

  • 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.

  • Display Image from Local p"ath 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

    Well you could use the HTML control - try program SAPHTML_DEMO1 and key in the c:\img.jpg to check it works for you... or the picture control as used in example SAP_PICTURE_DEMO.
    Jonathan

  • How to view Images from Filesystem in Apex?

    hello,
    i want to view images from a network share (e.g. \\10.67.125.22\CREATIVES_DE\PRINT\THUMB\2009\06\002259044s01.JPG don´t nedd http access because it´s only intranet) in an image column of a table. unfortunatly i can´t upload them all into apex because i have really much data. i´m talking about serveral terabytes. i also want to link to videos on a network share but apex always inserts "http://ham-v000002:8080/apex/" in front of the link from the database...
    can someone help me out?
    greetings
    Sebastian

    i´m getting closer...
    apex stopped inserting the localhost-string as i put "file://" in the "src" attribute. But now i´m dealing with odd slash-adding from apex.
    the value located in the #THUMB# variable is like this:
    \\10.67.125.22\CREATIVES_DE\PRINT\THUMB\2009\06\002268162s01.JPG
    and here´s what apex returns on "<img src="file://#THUMB#">":
    file:////10.67.125.22/CREATIVES_DE/PRINT/THUMB/2009/06/002268162s01.JPG
    and the same with three slashes "<img src="file://#THUMB#">"
    file://///10.67.125.22/CREATIVES_DE/PRINT/THUMB/2009/06/002268162s01.JPG
    if i just do "<img src="file:#THUMB#">" (which should return the correct path), oralce cuts away the ip-adress:
    file:///CREATIVES_DE/PRINT/THUMB/2009/06/002268162s01.JPG
    i don´t know what´s wrong here...
    greetings,
    Sebastian

  • Download Image from Local PC

    Hi,
    I have a jpg image which is stored in the local system(not on the server).I have written an application from which I am not able to download the image from the local system.
    I am using the following code but this code works only if the image is present on the server.
            String file = "C:\Folder_Name\image.jpg";
            final byte[] content = this.getByteArrayFromResourcePath(file);     
         final IWDCachedWebResource resource = WDWebResource.getWebResource(content, WDWebResourceType.UNKNOWN);
                    try
         final IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(resource.getURL(), "WD_Filedownload", true);
         window.open();
         catch(Exception e)     {
         wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
             private byte[] getByteArrayFromResourcePath(String resourcePath)throws FileNotFoundException, IOException
               FileInputStream in = new FileInputStream(new File(resourcePath));
               ByteArrayOutputStream out = new ByteArrayOutputStream();
               int length;
               byte[] part = new byte[10 * 1024];
               while ((length = in.read(part)) != -1) {
                 out.write(part, 0, length);
               in.close();
               return out.toByteArray();
    And for downloading the file or image from local system I need to put the file in \src\mimes\Components folder; Where as I want the file to be downloadable anywhere from the local file system. Is that possible?
    Thanks
    Pravin

    Pravin,
    If you want to display an image existing elsewhere on the local machine, you need to upload it first (use FileUpload UI component), store it in a byte array and then continue with your code below of creating a cached web resource.
    And you place resources in src/mimes/component so that they will be available to the application (meaning for all users). This doesnt mean you are displaying the image from the local file system. When you deploy, these images go and live in the server and accessed from there.
    In any case, the hardcoded image location in your code is valid only for YOU but not necessarily other user running the same application.
    As such, you cannot access the client's file system explicitly (i.e local machine) due to security reasons. I know of no other way to do it with WebDynpro. Any resources must be present on the server side at some point of time. Either at application start or ask the user to provide it (like FileUpload).
    No web technology allows that other than signed applets or trusted activex controls, as far as i know.
    Hope that clears the confusion.
    Thanks,
    Rajit
    Message was edited by:
            Rajit Srinivas

  • HT4106 Will the camera kit allow you to view images from a usb flash drive?

    Will the camera kit allow you to view images from a usb flash drive?

    You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive (works the same with an SD card) into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Using The iPad Camera Connection Kit
    http://support.apple.com/kb/HT4101
     Cheers, Tom

  • How to view images from Pictures Folder using iPhoto?

    Right now when I click an image in the Pictures folder, the image is automatically opened using Preview. I want to view images directly from my Pictures folder, and have them open to iPhoto. Is that possible?
    I just want to be able to view/sort my photos by Folders rather than by Events, Titles or Photo dates. I can't seem to get them to sort by folders in iPhoto.

    Iphoto is a Photo Database designed to allow you to organise and manipulate you photos without recourse to your files.
    It's not an image viewer, it can only work with photos that have been imported to the database.
    I just want to be able to view/sort my photos by Folders rather than by Events,
    An Event is a folder of images with a fancy icon. You can organize your pics in iPhoto anyway you want, using Albums, folders, keywords and so on. It's far more flexible that using folders in the Finder.
    You can opt to organise the files yourself, rather than have iPhoto do it for you, but I don't recommend it.
    Simply go to iPhoto Menu -> Preferences -> Advanced and uncheck 'Copy Files to the iPhoto Library on Import'.
    Now iPhoto will not copy the files, but rather simply reference them on your HD. To do this it will create an alias in the Originals Folder that points to your file. It will still create a thumbnail and, if you modify the pics, a Modified version within the iPhoto Library Folder.
    However, you need to be aware of a number of potential pitfalls using this system.
    1. Import and deleting pics are more complex procedures
    2. You cannot move or rename the files on your system or iPhoto will lose track of them on systems prior to 10.5 and iPhoto 08. Even with the later versions issues can still arise if you move the referenced files to new volumes or between volumes.
    3. Most importantly, migrating to a new disk or computer can be much more complex.
    Always allowing for personal preference, I've yet to see a good reason to run iPhoto in referenced mode unless you're using two photo organisers.
    If disk space is an issue, you can run an entire iPhoto Library from an external disk:
    1. Quit iPhoto
    2. Copy the iPhoto Library as an entity from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    If you're concerned about accessing the files, There are many, many ways to access your files in iPhoto:
    *For Users of 10.5 and later*
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    *For users of 10.4 and later* ...
    Many internet sites such as Flickr and SmugMug have plug-ins for accessing the iPhoto Library. If the site you want to use doesn’t then some, one or any of these will also work:
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. However, if you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto not running*:
    For users of 10.6 and later:
    You can download a free Services component from MacOSXAutomation which will give you access to the iPhoto Library from your Services Menu. Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and later:
    Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Regards
    TD

  • How to insert and view images from oracle using jsf

    Can anyone please give me some code example or link of article explaining that how can i insert and view images to/from oracle using jsf?
    Thanks in advance.

    You mean you want to view image data stored in the database, right?
    Create a servlet that streams the image data to the response (setting the appropriate content-type), then reference this servlet in your img tag. Here is an example:
    http://balusc.blogspot.com/2007/04/imageservlet.html
    Storage is something different. What exactly don't you understand there? Perhaps you want a file upload component?

  • Get image from local file system for printing

    If a user clicks Print, I would like to be able to print the
    stationery header if the user wants to print on plain paper. Can I
    pick up the image from the users local file system and add it
    directly to the print send object? Prior to this the user would
    simply upload the location of the image to the remote server where
    the swf resides, or do I have to ask him to upload the image itself
    and then download it again every time he uses the program?
    Doug

    Here is a snippet from the Flex 2 user guide about urlloader:
    When using this method, consider the Adobe® Flash®
    Player security model:
    For Flash Player 8 and later:
    Data loading is not allowed if the calling SWF file is in the
    local-with-file-system sandbox and the target resource is from a
    network sandbox.
    Data loading is also not allowed if the calling SWF file is
    from a network sandbox and the target resource is local.
    As far as I know there is no way for a user to "trust" an swf
    file. This is not like an activeX control.

  • Resize image from local drive and upload to server

    Hi there
    I want to allow the user to chose an image from his local
    hard drive.
    The image should then be loaded into the Flex 2 application.
    There I wanna show him infos about the image e.g. height and
    width.
    He should then be able to scale/resize the image and upload
    it to the server.
    I have no idea how to do that :-)
    Any thoughts on that?
    Thanks in advance
    Bernd

    Well in short, you need a second language to support that,
    e.g. PHP/ASP/CF.
    First you'll have to build a GUi in which you can upload the
    jpg, putting it to the server using php/asp/cf, then you'll need to
    make a call to that image, (importing it into your flex), then
    you'll have to set the parameters for the resizing, then you'll
    have to call a php/asp/cf script which does te resizing

  • Viewing Images from Database using JSP/ SQLJ

    Dear Friends,
    I could manage to write an image into a BLOB Field in the Oracle
    Database. I could even manage to read that image from the
    database but i am doing it by reading the BLOB data and writing
    it into a file with 'gif' or 'jpeg' extension.
    I would like to know how to read the BLOB data dynamically in
    cache and display it on the JSP page in the browser without
    creating a file on the disk.
    Thanking you,
    Sarwottam

    Thanks for replying,
    Can you please elaborate on your suggestions ?
    If possible can you provide a sample code that would help me understand better?
    Thanks again.
    Sarwottam

  • View pdf from local machine

    I have requirement of selecting a pdf from local system and previewing it before uploading.
    I am able to select the file and upload it but i am not able to preview it.
    I tried using navigateToURL(urlRequest,
    "_blank"); , but it is not able to show file from local path
    Can anyone please tell how can i show the file from local machine
    TIA

    Hi,
    is your code executed in Flash runtime (web/standalone application but played in Flash runtime) or in AIR runtime (or 3rd party projector)? That's important as only AIR hosted movie would have access to "file://" protocol when defining/using URLRequest (and then navigateToURL) that are outside of your application domain:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/URLRequest.html
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/package.html# navigateToURL()
    regards,
    Peter

  • View images from enhanced podcasts on AppleTV (2nd gen)

    Is there a way to view the images embedded in enhanced audio podcasts through AppleTV? I listen to a number of photography podcasts that discuss particular images but the audio isn't much good if I cannot see the image. Thanks.

    An example would be any audio podcast of the Martin Bailey Photography Podcast or the History of Photography podcast by Jeff Curto... Is there a way to view the images embedded in enhanced audio podcasts through AppleTV?
    Okay... I selected the Jeff Curto "Photo History - Class 6 Spring 11 - Photography and Painting" podcast for test purposes. The easiest way to view this specific file on the TV2 device seems to be to simply lie to iTunes.
    1) Download the podcast in your normal manner.
    2) Delete the podcast from iTunes and send it to your trash can.
    3) Drag the file back to your desktop.
    4) Change the M4A (".m4a") file extension to M4V (".m4v").
    5) Re-import the file to your iTunes library.
    Your audio podcast will now load/play on the TV2 as if it were a video podcast.

  • View image from an angle

    Using CS5, is there a way to turn an image "away" from the viewer as if one was looking at it at an angle? In other words, the left side would get farther away and the right side would get closer. thanks

    You don't really need the 3D capabilities to do that.
    Check out the Edit - Transform family of functions.
    -Noel

Maybe you are looking for

  • Opening a file from bridge

    How do I set the preference to have Bridge open files automitically into CS5 when I double-click on it?

  • Run macro in PDF form created in LC

    I have created a form in LiveCycle Designer with a text field that can expand to several pages if need be.  It works great.  Now when the person fills it out and emails it back to us, we need to be able to pull all of the comma-delimted text out of t

  • Tabs and pages not drawn when switching tabs.

    When switching between tabs or opening new tabs, the tab and the page are not drawn. But if I scroll down the page is drawn. This doesn't happen always. It happens randomly. Here's some sample sample images: https://dl.dropboxusercontent.com/u/142793

  • What is the T-Code for creating Cost center - profit center standard hierar

    Hi, What is the T-Code for creating Cost center - profit center standard hierarchy.Please provide me the T-codes. Thanks

  • Flash or Director?

    I'm a multimedia student and my collegues and I have been  debating weather we prefer Flash or Director. My teacher who teaches  Director says he dislikes Flash and my teacher who teaches flash, says  he dislikes director. Having worked with both, I