Receiving images from server

Hello,
I want to get image, from server to mobile.
In what format server shoud transfer image?
May be in byte array?
In what way images are transfered through the network ?
Thank you.

Hi,
I have done it. May be it helps you. Send png image from server in byte array. Treate your image as a file and send the contents of file as a bytes. that means read a whole image file in to byte array and send the array.
At receiving side create image from this byte[] . Suppose you had received array :
byte[] imageBytes; then do
Image image = Image.createImage(imageBytes,0,imageBytes.length()-1);
It will create immutable image. If you want muttable image from it ,then do
Image mutable = Image.createImage(image.width(),image.height());
Graphics g = mutable.getGraphics();
g.drawImage(image,0,0,Graphics.TOP|Graphics.LEFT);
Hope it will help you.
Regards,
Ronak Patel

Similar Messages

  • How to see the image from server

    hi,
    I have uploaded an image to server using following code. I want to see the image from server now. When i open this page then it show image. But when i want to see this image from server then it shows blank. Whats the problem of my code? Give me solution.
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <%@ page import="org.apache.commons.fileupload.*" %>
    <%@ page import ="org.apache.commons.fileupload.servlet.*" %>
    <%@ page import ="java.util.*" %>
    <%@ page import ="java.io.*" %>
    </head>
    <title>User Registration page</title>
    <body>
    <%
    boolean isMultipart = ServletFileUpload.isMultipartContent(request);
    FileItemFactory factory=new org.apache.commons.fileupload.disk.DiskFileItemFactory();
    ServletFileUpload upload =new ServletFileUpload(factory);
    List items = upload.parseRequest(request);
    Iterator iter = items.iterator();
         while (iter.hasNext()) {
         FileItem item = (FileItem) iter.next();
         if (!item.isFormField()) {
         String path=application.getRealPath("/");
         File tempfile=new File(item.getName());
         File uploadfile=new File(path,tempfile.getName());
         item.write(uploadfile);
         %>
         <br>
    <img src="<%=uploadfile%>" height="100" width="100">
    <br>
    <%=uploadfile%>
    <%
    item.delete();
    %>
    </body>
    </html>Is there anybody can help me.
    With regards
    Bina

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <%@ page import="org.apache.commons.fileupload.*" %>
    <%@ page import ="org.apache.commons.fileupload.servlet.*" %>
    <%@ page import ="java.util.*" %>
    <%@ page import ="java.io.*" %>
    </head>
    <title>User Registration page</title>
    <body>
    <%
    String filename = "";
    boolean isMultipart = ServletFileUpload.isMultipartContent(request);
    FileItemFactory factory=new org.apache.commons.fileupload.disk.DiskFileItemFactory();
    ServletFileUpload upload =new ServletFileUpload(factory);
    List items = upload.parseRequest(request);
    Iterator iter = items.iterator();
         while (iter.hasNext()) {
         FileItem item = (FileItem) iter.next();
         if (!item.isFormField()) {
         String path=application.getRealPath("/");
         filename = item.getName();
                         File tempfile=new File(filename);
         File uploadfile=new File(path,tempfile.getName());
         item.write(uploadfile);
         %>
         <br>
    <img src="<%=path+filename%>" height="100" width="100">
    <br>
    <%=uploadfile%>
    <%
    item.delete();
    %>
    </body>
    </html>

  • Upload image from server in jdev release2 11.1.2.4.0?????

    HI i am using jdev 11.1.2.4.0
    my requirments are
    1.upload image from server
    2.display image and edited by using editor page like paint.
    3.save that edited copy also
    i am new i jdev,is this requirements are done by jdev,please help,i dont have any idea,please help????

    Unfortunately upgrading to 10.8.2 messes up your previously configured steps and you can no longer rely on Java Preferences to define your JDK setup.
    What I suggest is doing this:
    1) Delete your current JDev installation + the system directory
    2) Ensure that the symbolic link as described in step 3 of the following link is still present and points to actual file
    3) Follow the steps in this blog: https://blogs.oracle.com/blueberry/entry/how_to_saddle_your_mountain ... to reinstall JDev.
    This should get you back up and running.
    CM.

  • Any ideas of how to receive images from a wireless camera (2.4 ghz) to my ipad rather than the handheld DVR supplied?

    Any ideas of how to receive images from a wireless camera (2.4 ghz) to my ipad rather than the handheld DVR supplied?

    some of those often have webserver so one just navigate to it using a browser

  • HT204387 I can receive image from iphone 5s of my brother. but I cant do it vice versa, airdrop is on already

    I can receive image from iphone 5s of my brother. but I cant do it vice versa, airdrop is on already

    To Contact iTunes Customer Service...
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • N81 cant receive image from other (brand) mobiles

    i have purchased a nokia n81(sd) and i realised that i cant receive images(ONLY) from other mobiles(other brand,with nokia mobiles no problem)... when a sony erricson for example tries to send a pictures it asks me to receive this message.. when i press "yes".. but in other device it appears that i havent accepted!!!!!!!!! thats happends only on pictures!!!!! videos and music works perfectly!!!!

    u did a good effort for the JMF beginners i appreciate that....thanks i lot....i need you help in a project in
    which i have to connect to a d-link 950G IP camera and process that
    mpeg-4 stream (i know there are some problems in JMF and mpeg4) and show it over applet of JFrame.
    IP is 172.25.35.22
    Edited by: alchemist on Jul 16, 2008 6:09 AM

  • How receive image from camera with PCI-bus

    Hello all
    Please help
    me.
    I have LV 7.1.1.
    I wont
    watch two and more images from cameras at the same time.
    I have capture
    card (PCI-bus) with 4 video-input.
    What kind
    of data must be transfered from this capture card  to LV?
     With respect
    Aleksandr.

    Hello Aleksandr
    please provide more information, what type of video card do you have?
    Have you configure the card so you can watch an image with MAX?
    I suppose the card has the ability to capture more than one image at a time is that true?, however most of the cards that I know of, have several inputs but you can only display one image at a time, you can swith between them and capture and image from another input, to capture more than one unit at a time you would need to open/close sessions with the instrument/card such that you are switching from one input to another
    vicente

  • Receive image from two web-camera​s

    Hallo all.
    I have LV 7.1.1
    I have two web-cameras which are connected to USB1 & USB2.
    How can I see two images  from two web-cameras or more in LV  at the same time?
    With respect
    Aleksandr
    Message Edited by [email protected] on 06-19-2006 01:20 AM

    Aleksandr,
    The IMAQ for USB driver communicates to the 3rd party camera driver using Directshow.  There is an IMAQ USB Property Page VI available in LabVIEW that gives you the ability to open the camera configuration page of the 3rd party camera provided that there is one available.  Depending on the vendor, you may or may not have access to change the resolution of your camera through this property page.   I would contact the manufacturer of the camera to find out if there is a way to do this.
    In case you are curious to know where to find the IMAQ USB Property Page VI, right-click on the block diagram and go to Search in the upper right corner of the palette.  Search for "IMAQ USB Property Page" and the corresponding VI will show up in the list below it.
    Regards,
    Mike T
    National Instruments

  • How to get path of image from server side in form of URL

    Hello,
    I want to access images stored on server side local folder. How do I create a URL for that. Images in the folder changes dynamically, so I should be able to display the new modified images. Please help me.
    Thanks in advance

    Are you asking from client side to access server (local folder) images...
    if yes
    where the security goes....
    please be in detail...

  • Slow Imaging from Server

    I am using ZCM 10.3.3 on Windows 2003 server. I created a "Satellite server" for imaging - a Dell Optiplex GX280 wih a 70 GB disk for images etc for testing. I have now got a Dell PE2950 server to be used as my final imagstore and satellite server.
    The problem is restoring an image (using bootCD) takes about 20 - 30 minutes for an 11gb image (win7) on the pc BUT takes over 20 hours from the server. Crazy.
    Both boxes satellite devices - PC with 2 GB RAM and server with 8Gb RAM are side by side. Both using GB Nics. I can't figure this one out. Antivirus is set not to scan zmg files or the imaging folder.
    Am I missing something?

    Issue resolved.
    There were 2 Nic's in the server. I updated Firmware and drivers and then bridged netowrk connections between both. This sorted speed issues.
    Thanks

  • Problem in receiving message from server

    Hi all,
    i am new to socket programming. i tried a simple echo server-client programs. The problem is client is able to send the message but it is not receiving and no problem with server. can anyone help me?

    (a) is the client flushing its output stream?
    (b) is the server flushing its output stream?
    (c) are there any exceptions being thrown?
    (d) What if anything is the server receiving?
    (e) What if anything is the client receiving?

  • TS3989 my photostream on my ipad doesn't receive images from my windows 7 pc icloud photostream

    my ipad syncs images to my pc photostream but my pc is not syncing to my ipad photostream. Both are set with the same id

    Hello dkphoto,
    You may need to verify that images are being place in the correct directory.
    iCloud: Set up Photo Stream
    http://support.apple.com/kb/PH2605
    By default, photos are automatically downloaded to the My Photo Stream folder inside the Photo Stream album in your Pictures library, and uploaded from the Uploads folder inside the Photo Stream album in your Pictures library.
    If this doesn't resolve the issue, the following article may be helpful.
    iCloud: Photo Stream troubleshooting
    http://support.apple.com/kb/TS3989
    Cheers,
    Allen

  • Lightroom just created a new 2014 folder to receive images from 2014, but I already have a 2014 folder which has received all my previous images. How do I get the system to keep using the original 2014 folder?

    How do I route newly created images into my existing folder for 2014? Why did the system create a new folder which seems to be snatching all my new images?

    Well, something is not making sense here, and I might have to spend some time thinking about it, or hopefully someone else will know exactly what the issue is.
    The first screen capture you provided shows the Lightroom Folder Panel, with folders on the C: drive named 2012, 2013 and 2014 and then the problem second 2014 folder, followed by many folders whose name begins with "My Canon".
    The most recent screen capture you provided shows the C: drive problem 2014 folder, but none of those other folders!
    Can you show us a screen capture of your Windows Explorer C: drive folders? Particularly, can you expand the folder structure so that it shows where the 2012 and 2013 and original 2014 folders and the problem 2014 folder are located? If that takes 2 or more screen captures, that's fine. ALso, if you can show the "My Canon" folders, please do.

  • Using web cam with skype but not receiving image from PC

    I've just downloaded skype and asked my son to do the same as we got nowhere with messenger, in the hope to be able to chat to him and see each other. He can see me but I cannot see him and his webcam says "error in trying to connect to ...'. Is this something to do with his webcam or the fact that I am using a Mac?

    Check with the folks at Skype.

  • How to download an image from java server

    Hi,
       I have created a program which allows me to upload images to Java Server thru Multipart.
    How can i receive an image from server and download it to iPhone app.Is there any way apart from NSURL i can download the image.
    Base64 Encoding & Decoding  seems to be not working.
    Thanks in advance,
      Haritha

    Hi,
       I have created a program which allows me to upload images to Java Server thru Multipart.
    How can i receive an image from server and download it to iPhone app.Is there any way apart from NSURL i can download the image.
    Base64 Encoding & Decoding  seems to be not working.
    Thanks in advance,
      Haritha

Maybe you are looking for

  • ISE 1.2 Profiler Feed Service

    Just curious if any updated device profiles have been made available for download via the feed service in ISE 1.2? 

  • ITunes error message:  The Network Connection Timed Out???

    New 30GB and Nano for Christmas. Per the instructions, I downloaded the Itunes update, 7.0.2. Since then, we can't get on Itunes store. Apple support said the site was too busy. I've downloaded it on my work computer and laptop and the store opens, b

  • Only a few songs in playlist are sync correctly.

    I've recently made a purchase of an iMac, and I was synchronizing my iPhone to my new Mac. However, after synchronizing, I've found that the songs that I have categorized them into various playlists aren't found in the lists. Those songs are in my ph

  • Plant - purchasing org.

    tables. which table wil give me plants and purchasing organizations. thanks

  • Eiciel nautilus integration

    I am trying to configure a number of Arch boxes to use as fileservers and web proxies on a mostly-Windows network.  I've been able to get most things running much easier in Arch than I have in Ubuntu or CentOS (we're undecided on which OS to use, alt