Read an Image from a outside server

Hi, I want to display a image from a site like: "http://my_site/image.gif" into a image_item.
I tried with this:
READ_IMAGE_FILE('http://my_site/image.gif', 'GIF', 'control.img_map');
But it doesn't work.
Help!!!!!
Tks.

Franco,
READ_IMAGE_FILE reads from the file system, not from an URL. You will have to use a Java class on the server to read the image ot a temporary directory and then read it from there.
Frank

Similar Messages

  • How to read bytes(image) from a server ?how to display image after read byt

    How to read bytes(image) from a server ?how to display image after reading bytes?
    i have tried coding tis , but i couldnt get the image to be display:
    BufferedInputStream in1=new BufferedInputStream(kkSocket.getInputStream());
    int length1;
    byte [] data=new byte[1048576];
    if((length1=in1.read(data))!=-1){
    System.out.println("???");
    }System.out.println("length "+length1);
    Integer inter=new Integer(length1);
    byte d=inter.byteValue();

    didn't I tell you about using javax.imageio.ImageIO.read(InputStream) in another thread?

  • Stream-in images from client to server,without running the transmit code

    Hello all,
    Im using JMF for my current project.Right now,I am trying to only recieve images from the client without the client transmitting it.That is I dont want the transmit code to run on the client.
    I should just be able to stream in the images from client to server, without running the transmit code on client.
    Can this be done?
    Thanks in advance

    suppigs wrote:
    Can I know more about this?Sure.
    <Side A>
    You'd just need to write an application that doesn't have a GUI (so, a console-based application) that listens on some pre-determined port for a message to start broadcasting. Maybe you'd send it the IP/PORT number to start broadcasting on. Once it receives that message, it'd start broadcasting the web cam to the IP/PORT number until it received a message to stop. Once it stops, it'll just go back to waiting for the next "start" signal.
    <Side B>
    On the other side, you'd write an application that sends the start messages, receives/displays the videos, and then sends the stop signal. This will have a GUI, and be your "control program" so to speak.
    Then, once of have both of those programs working...if you're using Linux, you're done. If you're using Windows, you'd need to modify the <Side A> program so that it can run as a Windows service.
    There are a lot of ways to do this, you can google it or look at the following link:
    [http://twit88.com/blog/2007/09/19/open-source-software-to-start-up-java-as-windows-serviceunix-daemon/]

  • JAVA, sqlserver - Need to load an image from the sql server database

    hi,
    I need to load an image from the sql server database using java. I have connected to the database and getting all other records except the records for a photo (datatype = LONGVARBINARY) and Remarks (datatype = LONGVARCHAR).
    I am using java and sql server db. The photo and remarks are stored in the db. and i need to show the image and the remarks fetching them from there.
    I get the error :
    Thread-9 org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
    How can I achieve this?
    Thanks,
    Gargi

    Exactly. And are you using MySQL?
    No. You are using Microsoft SQL server if I have to believe your initial post. A quick google tells me that the dialect class to use is:
    org.hibernate.dialect.SQLServerDialect

  • How to read some images from file system with webdynpro for abap?

    Hi,experts,
    I want to finish webdynpro for abap program to read some photos from file system. I may make MIMES in the webdynpro component and create photos in the MIMES, but my boss doesn't agree with me using this way. He wish me read these photos from file system.
    How to read some images from file system with webdynpro for abap?
    Thanks a lot!

    Hello Tao,
    The parameter
       icm/HTTP/file_access_<xx>
    may help you to access the pictures without any db-access.
    The following two links may help you to understand the other possibilities as well.
    The threads are covering BSP, but it should be useful for WebDynpro as well.
    /people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
    http://help.sap.com/saphelp_sm40/helpdata/de/c4/87153a1a5b4c2de10000000a114084/content.htm
    Best regards
    Christian

  • Can BI Publisher read the images from the Database?

    Hi All,
    Can BI Publisher read the images from the Database?
    if yes how it can be achieved?
    Thanks
    Aravind

    Hi,
    There is an example in oracle db. Use the schema PM (Print Media).
    Select the corresponding table that contains the column AD_PHOTO.
    In your RTF template simply to print the image stored in the db use:
    <fo:instream-foreign-object content-type="image/jpg"> <xsl:value-of select="AD_PHOTO"/>
    </fo:instream-foreign-object>
    RUn the RTF template and it should show you all.
    Cheers
    Jorge
    p.s. If this answers your question then please grant the points and close the thread

  • How to read an image from an file using jsp

    reading an image from an file present on local disk using jsp

    Server-local or client-local? First, File I/O, second: better get a new job.

  • How can i read a image from clipboard

    Hi all,
     Can you anyone help me to figure out this problem,actually i have an VI that capture screen image(similiar to print screen option in windows) & save it in a file.and now the thing is,its working in code,once if i converted that to EXE it is not reading that image from the clipboard .I have attached that VI along with this thread please check it.
    Attachments:
    Clipboard.vi ‏20 KB

    Hey,
    It seems that the Get Image from Clipboard method is not available for executables.
    The following thread gives a working example with a CIN -> http://forums.ni.com/ni/board/message?board.id=170&message.id=35987&requireLogin=False
    Christian

  • How can i  read a image from a oracle DB?

    How can i read a image from a oracle DB?
    Because in the DB a have a field that is a picture that i would like to show in a jpanel.....but this field is in oracle DB only has strange caracters ..... so Do i have to read this field like a input stream?....
    Could some body help me please?
    Thanks...
    Mary

    Well I suppose the picture is stored in a blob. If that is so this is some code I have used to load a picture to a panel. Hope you find it usefull.
    PreparedStatement retreive = db.createPreparedStatement("select bl from test where ln = ?");
    Blob bl;
    try{
    retreive.setBigDecimal(1, new BigDecimal(jTFln.getText()));
    ResultSet rs = retreive.executeQuery();
    if (!rs.next())
    System.out.println("Empty Result Set");
    bl = rs.getBlob("bl");
    if (bl == null) {
    System.out.println("Null Blob");
    return;
    InputStream is = bl.getBinaryStream();
    int imageLength = (int) bl.length();
    System.out.println(imageLength);
    System.out.println(bl.length());
    byte[] imageData = new byte [imageLength];
    is.read(imageData, 0, imageLength);
    image1 = new ImageIcon(imageData);
    photo = new JPanel() {
    public void paint(Graphics g){
    g.setColor(Color.lightGray);
    g.drawImage(image1.getImage(), 0, 0, this);
    } catch (BadLocationException ble){
    ble.printStackTrace();
    } catch (SQLException sqle){
    sqle.printStackTrace();
    } catch (IOException ioe){
    ioe.printStackTrace();
    }

  • Read Images from a different server

    I need to read an image which is on a different server and place on my form. Can any one help me how this can be acomplished.
    I have the url where all the images are residing. Though I hard code it in my form it gives me error that it cannot find the image.
    Any ideas?

    What is the code you are trying to use. If you tried READ_IMAGE_FILE then this doesn't work because it looks on the file system for images (see online help)
    Frank

  • Neboot, 10.5.2 image from OSX Tiger Server fails to new macbooks

    (I apologize in advance, I looked through several threads but could not find answer
    to my situation. I also apologize because I tried to get help at the Bombich forum,
    but an admin marked it "solved", when in fact it isn't.
    Thus I turn to the Apple faithful for help with this matter.)
    Using NetRestore 3.4.3, and I'm imaging MacBook (early 2008) labs,
    with 26 MBs in them.
    How I Do it: I get one MB, and using Leopard from OEM, I then patch
    up to Leo 10.5.2/QT 7.4.5/Safari 3.1 and I install the elementary apps
    necessary ( Kid Pix 3, Kidspiration 2, and Nystrom).
    I also install Office 2004, patched up to 11.4.1, and iWorks 08.
    I verify the image is correct, and then firewire connect the MB
    to my Master machine, a MBP running 10.5.2 and NetRestore 3.4.3.
    I then create the NetRestore image from the MB, and then create the NetInstall
    nbi for the image. I then copy the items from the MBP to my imaging server,
    a PPC iMac running OS X Server 10.4.11, via FW.
    I then set the Netboot options in the Server, and reboot the server for good measure.
    I then start hooking up the 25 MBs into a Cisco 2950 switch, which the
    Server is hooked into. I then boot all machines into NetBoot ( cmd-n)
    and image ( slowly) all the machines.
    The Problem:
    Once the images have been created on the machines, and after reboot,
    I then log into as the local admin, then set the server binding.
    Once the binding is complete, I log out, and then verify the binding sticks.
    I then log in as a managed user.
    This is where the image "breaks". The managed user becomes locked out
    of most Universal apps, and apps that should run under Rosetta,
    come up with their icons changed to the "ghostbusters circle"
    (Circle with line through it), and give the error " This application cannot run
    due to it not being supported on this architecture".
    However, if I log back in as local admin, the applications act as normal.
    Also, if I log in or log out as a managed user, the system often hangs,
    either at login or logout, leaving me with just the Leopard space screen,
    and will sometimes force me to force quit the
    system to get it to respond again.
    Contacting Apple, their only suggestion was to start again, but to use SUI
    from a Leopard Server Disc, which I didn't have but they were nice enough
    to send to me anyway, and create the NetBoot off of that.
    I decided however to give NetBoot one more try, and tried it again,
    this time making sure I repaired permissions on the original image
    (MB) before making the NetBoot image in NR 3.4.3.
    I still recieve the same problems afterwards.
    I then did a test in which I created both a second local admin account and
    a local standard account, and both acted like a managed account:
    apps could not be used, "ghostbuster circles" and log in/ log out hangs.
    I'm hesitant to use Leopard SIU, because I read all the reports of it's slowness,
    but is there something in 10.5.2 that breaks Netbooting?
    I've had no problems with Tiger Images in the past, so I'm pretty sure
    i got my steps down.
    Update in my testing :
    Today I decided to try and troubleshoot the image again, so this time
    I took the existing MacBook I used to make the image from,
    and I re-installed the problematic applications again,
    as well as delete the secondary admin and the standard user
    from my config, as I would add these later after the computers
    have been imaged.
    I then ran fix disc permissions on the image drive, and now I am using
    Net Restore 3.4.4, to remake the image andwhen done, I will re- create
    the nbi for the netinstall.
    I will test out the image shortly to see if it will work.
    ok, follow-up:
    after completing my new image and re-creating through NetRestore 3.4.4,
    as well as new nbi's, I copied them over FireWire to my OS X Tiger .4.11 Server.
    Set Netboot in Server Admin, made the Leopard image the default, restarted
    the server.
    Attached a new MacBook IC2D 2.4ghz to my Cisco Switch that the Server is on,
    and attempted NetBoot.
    Net Restore came on and began it's duty. 36 mins later, the image was on,
    verified, and the machine was rebooting.
    Upon reboot, I logged into the MacBook, as the primary admin,
    and verified the UniBi apps and the PPC apps would launch correctly.
    I then created the Standard account ( Student) on the machine,
    and the logged out and then back in as Student to test.
    All Privalges for Student were correct, and the UniBi and PPC apps functioned
    correctly.
    I then logged out as Student , back in as Primary Admin ( me) and then
    went to System Prefs and created the Secondary Admin (Teacher) for
    the machine.
    I then logged out as Primary Admin, and then logged in as Secondary
    Admin, and verified the UniBi and PPC apps would launch.
    I then recieved the "This App is not supported under this architecture"
    error with the UniBi and PPC apps under this secondary admin.
    I logged out, and then logged back in as Primary Admin (me), and everything
    still was working correctly under my account.
    I then trashed the Secondary Admin ( Teacher), and created a new secondary admin
    (called simply School).
    I then logged out as Primary Admin, logged in as School, and same errors
    occur, "This App is not supported under this architecture"
    error with the UniBi and PPC apps.
    I then called one of the PPC app makers Tech Support to see if they had seen
    anything like this under Leopard.
    Of course they hadn't, but after digging around, we decided to try this fix:
    Logged in as Primary Admin, I did a get info on the folder of the app
    that was" breaking".
    I then added the Secondary Admin to the Get Info panel and gave them
    a full ride ( rw) privalges to the folder. I then told the Panel to
    push them down ( propagate) to all children within the folder, including the app.
    I then closed out of the Panel, logged out as admin, and then logged in
    as Secondary admin. I then tested the app, and success, it launched
    perfectly!!!
    So at this point, I would say there is something more to the point
    problematic with Leopard .5.2 's ability to distinguish privileges
    to non Leopard based apps. Apps like the iLife 08 suite, and
    iWorks 08 didn't exhibt any of the problems I saw with Unibi
    and PPC apps under the secondary admin account; they worked as they should.
    At this point, I will add this "fix" to my list of drudgery that I do
    in finalization of the machine, like setting binding to the local
    OS X Server for Managed Accounts, which is next on my list to test,
    as that is also problematic with these Leopard .5.2. installs.
    Ok, so in part two to continue with my problems
    with 10.5.2 image and using NetRestore 3.4.4:
    I took the image out to test in a wide deployment.
    So with my same Tiger Server having the image,
    and my trusty Cisco 2950 switch,
    I set up 8 Macbooks to begin the deployment.
    The first four I turned on and got connected to the
    Server and they began to Netboot fine.
    MacBooks five through 8, I then tried to boot them up
    and get them in line to begin netbooting, but after taking up to
    10 minutes to connect to the server, they all came up with the following
    error:
    "You do not have read privileges to the source image. Please check
    the permissions on the image and try again."
    The first four were still imaging just fine, the next four would just hang
    at that error message.
    So I waited for one to completely finish out of the first four,
    and when it did, I tried to netboot one of the second group
    of four, and after 10 minutes, it connected and began it's process.
    I then tried another in the second group of four, and got the same
    "privileges on image" error.
    So what gives?
    Why can I only do four machines at a time? I know the image is
    fine and its permissions are ok, because I can do four machines
    at a time. It's when I try to do more than that then the problem
    occurs.
    Is this a Leopard issue or a Net Restore 3.4.4. issue?
    Well, just for grins, I put a PPC eMac onto the CISCO 2950,
    and attempted a Netboot from it with the Leopard Universal image,
    just to see if it would mount ( the emac is 700 mhz, so it would not
    support Leopard anyway).
    It attempted Netboot, but came back with the same
    "cannot read the disc image error" as seen on the
    MacBooks.
    But the image worked fine on the first four MacBooks,
    only when I attempted to NetBoot #5 did it cause the error.
    Could trying to put on that fifth Macbook corrupted the image somehow?
    or the NBI?

    While patiently waiting to see if anyone else is having my same issues,
    I tried a Firewire hookup to my 10.4 server directly
    of Macbooks 5 and 6, and tried a Netrestore through Firewire to the Macbooks
    off the same image in my NetBootSp0's Resources/Disc Image folder,
    and it restored fine to both , with only one error, that came up when it
    tried to auto-restart, but I suspect that having to do with it
    being unable to shut down the 10.4.11 Server more than anything else.
    So:
    1. the Image is valid, I can firewire restore from it at the server level
    no problem.
    2. It did do four MacBooks before saying it was "corrupted" and
    "Could not read the image".
    3. The Machines all boot into the Leopard NetBoot screen just fine
    through the Cisco 2950 switch, and get the nbi to bring up, but
    at the point it should auto run, it throws up the "corrupted" and
    "Could not read the image" errors.
    Unfortunately, I am under a deadline to image 540 MacBooks within the
    next 30 days, and my patience is wearing thin......

  • Can i fetch images from my remote server to UIImageView or a preview thumbnail in ios app?

    consider i have 1000 images in my hosting, i want all those images in my ios app. It is like ,in one screen around 9 thumbnails of image must be loaded from the webserver .And when i swipe the screen to the right another set of 9 thumbnail images must be loaded , it goes on untill all the image from the server are loaded. and when i click on a thumbnail the image must be shown in full screen. When i add more image to the hosting,  the swiping of  pages and thumnail previews must also dynamically increase. is there any way to achieve this concept ??

    khankmk wrote:
    if yes,then can u tell me how to achieve it?
    Again, to give you the answer you have requested - yes, I can.
    This is roughtly equivalent to asking a doctor how to remove an appendix. It isn't the most difficult surgery in the world, but it does require some training. It is not something I am able to explain. I could tell you to setup a web server with REST interface to serve images, metadata, and structure. Then write your app to populate some browser tables based on that data. Somehow, I don't think that explanation is going to provide much help.

  • Blank Image when using a gif image from a SQL Server Database

    Post Author: scsmith
    CA Forum: Publishing
    Hello,
    I'm trying to use a field from a SQL Server DB that has embedded GIF files. In Crystal Reports when I add the field to the report the picture is blank for every row. Any ideas?

    Post Author: kchiu
    CA Forum: Publishing
    i'm having the same issue. 
    I believe crystal doesn't support gif datatypes.
    I'm trying to either convert the images, or find a work around in crystal, but haven't found anything.

  • How to read enumerated values from an OPC server via Datasocket

    Hi Labviewers,
    I am using LV8.2 and I am trying to find if it is possible to read enumerations from an OPC server via Datasocket, not just the values.
    I can successfully read a value for an OPC server via Datasocket and I get a value for example 3, is it possible to get the enumeration/string that corresponds to this value i.e. "Open".
    Many thanks in advance
    Dimitris

    Hi Sarah,
    With the input type as variant I get the following response:
    1                                     <-This is the current numeric value of the parameter
    4 Attribute(s):
       'Quality' -> 192
       'TimeHigh' -> 29861723
       'TimeLow' -> -665408304
       'Timestamp' -> 39.238E+3
    With the Input set to         Enum constant I get no values or strings coming back. With the Input set to                Ring constant I just get the numeric value   
    Dimitris   

  • To read flat file from a unix server

    We need to read a flat file from a Unix server, where our Database is located.
    The location gets created correctly.
    But while we are trying to import files from the location in Design Center , we get an error that "directory does not exists", although the directory has all the permissions.
    Can someone please suggest how should we create the location so as it can read the files.
    Please Reply ASAP......

    We have started Design Center on a local machine(Windows Machine) with uaer as repository owner of the server,
    In the design center we can not sample the file till we import it,
    can you please tell how to sampe the file without importing it.
    Also a location pointing to server location gets easily created on the design center and the file module points to that location only, but when we try to import the file through that location, it says directory does not exists, although oracle user has all the read write permissions on the directory......
    Please help!

Maybe you are looking for